Skip to content

Commit 94918ce

Browse files
committed
fix: don't export duplicate identifiers
1 parent 82fbaab commit 94918ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/openapi-code-generator/src/typescript/typescript-fetch/typescript-fetch-client-builder.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,14 @@ export class ${clientName} extends AbstractFetchClient {
132132
${clientMethods.join("\n")}
133133
}
134134
135+
${
136+
clientName !== "ApiClient"
137+
? `
135138
export { ${clientName} as ApiClient }
136139
export type { ${clientName}Config as ApiClientConfig }
140+
`
141+
: ""
142+
}
137143
`
138144
}
139145
}

0 commit comments

Comments
 (0)