Skip to content

Commit 530484f

Browse files
author
m.buils
committed
[typescript-angular] error TS1345: An expression of type 'void' cannot be tested for truthiness - revert stub
1 parent 0c0134a commit 530484f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/client/petstore-security-test/typescript-angular/api/fake.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class FakeService {
8787

8888
const canConsumeForm = this.canConsumeForm(consumes);
8989

90-
let formParams: { append(param: string, value: any): void | HttpParams; };
90+
let formParams: { append(param: string, value: any): void; };
9191
let useForm = false;
9292
let convertFormParamsToString = false;
9393
if (useForm) {

samples/client/petstore-security-test/typescript-angular2/api/fake.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class FakeService {
8787

8888
const canConsumeForm = this.canConsumeForm(consumes);
8989

90-
let formParams: { append(param: string, value: any): void | HttpParams; };
90+
let formParams: { append(param: string, value: any): void; };
9191
let useForm = false;
9292
let convertFormParamsToString = false;
9393
if (useForm) {

0 commit comments

Comments
 (0)