@inventorjs/api-service
Version:
Api service manager base on axios
8 lines (7 loc) • 365 B
TypeScript
/**
* decorators
*/
import type { ApiConfig, ClassType } from './types.js';
import { ApiService } from './core.js';
export declare function Service(serviceConfig: ApiConfig): (Cls: ClassType<ApiService>) => void;
export declare function Api(apiConfig: ApiConfig): (Cls: ClassType<ApiService>, propertyKey: string, propertyDescriptor: PropertyDescriptor) => void;