mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Added cross blob for node js implementations - Fixed unittests - Fixed typing issue with headers
40 lines
892 B
Handlebars
40 lines
892 B
Handlebars
{{>header}}
|
|
{{#if @root.exportCore}}
|
|
|
|
export { ApiError } from './core/ApiError';
|
|
export { CancelablePromise } from './core/CancelablePromise';
|
|
export { OpenAPI } 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}}
|