mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
21 lines
469 B
TypeScript
21 lines
469 B
TypeScript
export declare enum HttpClient {
|
|
FETCH = 'fetch',
|
|
XHR = 'xhr',
|
|
NODE = 'node',
|
|
}
|
|
|
|
export interface Options {
|
|
input: string | Record<string, any>;
|
|
output: string;
|
|
httpClient?: HttpClient;
|
|
useOptions?: boolean;
|
|
useUnionTypes?: boolean;
|
|
exportCore?: boolean;
|
|
exportServices?: boolean;
|
|
exportModels?: boolean;
|
|
exportSchemas?: boolean;
|
|
write?: boolean;
|
|
}
|
|
|
|
export declare function generate(options: Options): Promise<void>;
|