@inversify-cn/swagger-express-ts
Version:
Generate and serve swagger.json
9 lines (8 loc) • 631 B
TypeScript
import { IApiOperationArgsBase } from './i-api-operation-args.base';
export declare function addModel(args: IApiOperationArgsBase): void;
export declare const generateModelsOnlyOnce: any;
export declare function generateModels(interfaceScanPaths: string[]): Promise<void>;
export declare function sanitize(interfaceProperty: any): any;
export declare function parseProperty(interfaceProperty: any): any[];
export declare function getPropertyType(propertyRightSide: string): string;
export declare function interfacePropertyToModelProperty(interfaceName: string, interfaceProperty: any, interfaceScanPaths: string[]): Promise<any>;