UNPKG

@jbcz/openapi-hooks-codegen

Version:

Library that generates React Hooks based on the OpenAPI specification.

22 lines (19 loc) 510 B
export declare enum HttpClient { FETCH = 'fetch', XHR = 'xhr', NODE = 'node', } 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>;