mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
39 lines
792 B
Handlebars
39 lines
792 B
Handlebars
{{>header}}
|
|
{{#if @root.exportCore}}
|
|
|
|
export { ApiError } from './core/ApiError';
|
|
export { OpenAPI } from './core/OpenAPI';
|
|
{{/if}}
|
|
{{#if @root.exportModels}}
|
|
{{#if models}}
|
|
|
|
{{#each models}}
|
|
{{#if enum}}
|
|
export { {{{name}}} } from './models/{{{name}}}';
|
|
{{else if @root.useUnionTypes}}
|
|
export type { {{{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}}} } from './services/{{{name}}}';
|
|
{{/each}}
|
|
{{/if}}
|
|
{{/if}}
|