mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
28 lines
598 B
TypeScript
28 lines
598 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 | 'fetch' | 'xhr' | 'node' | 'axios';
|
|
useOptions?: boolean;
|
|
useUnionTypes?: boolean;
|
|
exportCore?: boolean;
|
|
exportServices?: boolean;
|
|
exportModels?: boolean;
|
|
exportSchemas?: boolean;
|
|
request?: string;
|
|
write?: boolean;
|
|
};
|
|
|
|
export declare function generate(options: Options): Promise<void>;
|
|
|
|
export default {
|
|
HttpClient,
|
|
generate,
|
|
};
|