Skip to content

Commit b2a5e45

Browse files
committed
fix: generics
1 parent 4ca0748 commit b2a5e45

5 files changed

Lines changed: 15 additions & 14 deletions

File tree

integration-tests/typescript-angular/src/generated/api.github.com.yaml/client.service.ts

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-angular/src/generated/okta.oauth.yaml/client.service.ts

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-angular/src/generated/stripe.yaml/client.service.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-koa/src/todo-lists.yaml.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ async function main() {
2222
createTodoListItem: notImplemented,
2323
listAttachments: notImplemented,
2424
uploadAttachment: notImplemented,
25+
replaceAttachment: notImplemented,
2526
}),
2627
middleware: [genericErrorMiddleware],
2728
port: {port: 3000, host: "127.0.0.1"},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class AngularServiceBuilder extends AbstractClientBuilder {
6767
.filter(Boolean)
6868
.join("\n")}
6969
70-
return this.httpClient.request<any>(
70+
return this.httpClient.request${isBlobResponse ? "" : "<any>"}(
7171
"${method}",
7272
${hasServers ? "basePath" : "this.config.basePath"} + \`${url}\`, {
7373
${[

0 commit comments

Comments
 (0)