Skip to content

Commit 23bd50f

Browse files
authored
fix(typescript): missing override directives / satisfy noImplicitOverride (#19896)
* fix(typescript): missing `override` directives * chore: regenerate samples
1 parent 38dac13 commit 23bd50f

32 files changed

Lines changed: 64 additions & 64 deletions

File tree

modules/openapi-generator/src/main/resources/typescript/api/baseapi.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class BaseAPIRequestFactory {
3737
* @extends {Error}
3838
*/
3939
export class RequiredError extends Error {
40-
name: "RequiredError" = "RequiredError";
40+
override name: "RequiredError" = "RequiredError";
4141
constructor(public api: string, public method: string, public field: string) {
4242
super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + ".");
4343
}

modules/openapi-generator/src/main/resources/typescript/http/http.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib
317317

318318
export class HttpInfo<T> extends ResponseContext {
319319
public constructor(
320-
public httpStatusCode: number,
321-
public headers: Headers,
322-
public body: ResponseBody,
320+
httpStatusCode: number,
321+
headers: Headers,
322+
body: ResponseBody,
323323
public data: T,
324324
) {
325325
super(httpStatusCode, headers, body);

samples/client/others/typescript/builds/array-of-lists/apis/baseapi.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.

samples/client/others/typescript/builds/array-of-lists/http/http.ts

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

samples/client/others/typescript/builds/enum-single-value/apis/baseapi.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.

samples/client/others/typescript/builds/enum-single-value/http/http.ts

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

samples/client/others/typescript/builds/null-types-simple/apis/baseapi.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.

samples/client/others/typescript/builds/null-types-simple/http/http.ts

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

samples/client/others/typescript/builds/with-unique-items/apis/baseapi.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.

samples/client/others/typescript/builds/with-unique-items/http/http.ts

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

0 commit comments

Comments
 (0)