mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Fixed issue #940
This commit is contained in:
parent
8673f06ea4
commit
a159e77245
@ -1,7 +1,7 @@
|
||||
{{>header}}
|
||||
|
||||
{{#if @root.exportClient}}
|
||||
export { AppClient } from './client';
|
||||
export { {{{clientName}}} } from './client';
|
||||
{{/if}}
|
||||
{{#if @root.exportCore}}
|
||||
export { ApiError } from './core/ApiError';
|
||||
|
||||
@ -41,6 +41,7 @@ export const writeClientIndex = async (
|
||||
exportSchemas,
|
||||
useUnionTypes,
|
||||
postfix,
|
||||
clientName,
|
||||
server: client.server,
|
||||
version: client.version,
|
||||
models: sortModelsByName(client.models),
|
||||
|
||||
@ -14,7 +14,7 @@ const generate = async (input, output) => {
|
||||
exportSchemas: true,
|
||||
exportModels: true,
|
||||
exportServices: true,
|
||||
// clientName: 'AppClient',
|
||||
// clientName: 'DemoAppClient',
|
||||
// indent: OpenAPI.Indent.SPACE_2,
|
||||
// postfix: 'Api',
|
||||
// request: './test/custom/request.ts',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user