UNPKG

@mx560/swagger2ts

Version:

a tool to generate ts model file

16 lines (15 loc) 970 B
export declare const getOriginalRef: (ref?: string) => string; export declare const getAllDeps: (type?: string) => string[]; export declare const toGenericsTypes: (types: string) => string; export declare const toGenerics: (types: string[]) => string; export declare const removeGenericsSign: (type: string) => string; export declare const removeGenericsType: (type: string) => string; export declare const removeArraySign: (type: string) => string; export declare const isGenerics: (type: string) => boolean; export declare const report: (dist: string, code: string) => void; export declare const getSize: (code: string) => string; export declare const logError: (e: any) => void; export declare const blue: (str: string) => string; export declare const isString: (obj: any) => boolean; export declare const writeFile: (outputDir: string, content: string, fileName?: string) => Promise<void>; export declare const getLastPath: (path?: string) => string;