with freestyle API types
Provides full IntelliSense and type safety for path, query params, and body based on the freestyle OpenAPI schema.
import { kosServiceRequest } from '../../utils/services/freestyle/1.8.1/service';
import { DependencyLifecycle } from '@kosdev-code/kos-ui-sdk';
@kosServiceRequest({
path: '/api/...',
method: 'get',
lifecycle: DependencyLifecycle.LOAD
})
private onDataLoaded(): void {
// Fully typed based on freestyle API
}
Typed decorator factory for