Ferdi Koomen 5b3348d6f9 - Added axios client
- Added function to escape path and stopped replacement of ":" character in path
2021-10-08 23:34:49 +02:00

23 lines
510 B
TypeScript

export declare enum HttpClient {
FETCH = 'fetch',
XHR = 'xhr',
NODE = 'node',
AXIOS = 'axios',
}
export type Options = {
input: string | Record<string, any>;
output: string;
httpClient?: HttpClient;
useOptions?: boolean;
useUnionTypes?: boolean;
exportCore?: boolean;
exportServices?: boolean;
exportModels?: boolean;
exportSchemas?: boolean;
request?: string;
write?: boolean;
};
export declare function generate(options: Options): Promise<void>;