mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
47 lines
1.1 KiB
Handlebars
47 lines
1.1 KiB
Handlebars
{{>header}}
|
|
|
|
{{#if @root.exportClient}}
|
|
export { AppClient } from './client';
|
|
{{/if}}
|
|
{{#if @root.exportCore}}
|
|
export { ApiError } from './core/ApiError';
|
|
{{#if @root.exportClient}}
|
|
export { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
{{/if}}
|
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
export { OpenAPI } from './core/OpenAPI';
|
|
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
{{/if}}
|
|
{{#if @root.exportModels}}
|
|
{{#if models}}
|
|
|
|
{{#each models}}
|
|
{{#if @root.useUnionTypes}}
|
|
export type { {{{name}}} } from './models/{{{name}}}';
|
|
{{else if enum}}
|
|
export { {{{name}}} } from './models/{{{name}}}';
|
|
{{else if enums}}
|
|
export { {{{name}}} } from './models/{{{name}}}';
|
|
{{else}}
|
|
export type { {{{name}}} } from './models/{{{name}}}';
|
|
{{/if}}
|
|
{{/each}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if @root.exportSchemas}}
|
|
{{#if models}}
|
|
|
|
{{#each models}}
|
|
export { ${{{name}}} } from './schemas/${{{name}}}';
|
|
{{/each}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if @root.exportServices}}
|
|
{{#if services}}
|
|
|
|
{{#each services}}
|
|
export { {{{name}}}{{{@root.postfix}}} } from './services/{{{name}}}{{{@root.postfix}}}';
|
|
{{/each}}
|
|
{{/if}}
|
|
{{/if}}
|