diff --git a/modules/openapi-generator/src/main/resources/typescript/api/baseapi.mustache b/modules/openapi-generator/src/main/resources/typescript/api/baseapi.mustache index 206a5f0cc55e..45257017f208 100644 --- a/modules/openapi-generator/src/main/resources/typescript/api/baseapi.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/api/baseapi.mustache @@ -37,7 +37,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/modules/openapi-generator/src/main/resources/typescript/http/http.mustache b/modules/openapi-generator/src/main/resources/typescript/http/http.mustache index c97b24f183f9..82f701130329 100644 --- a/modules/openapi-generator/src/main/resources/typescript/http/http.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/http/http.mustache @@ -317,9 +317,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/client/others/typescript/builds/array-of-lists/apis/baseapi.ts b/samples/client/others/typescript/builds/array-of-lists/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/client/others/typescript/builds/array-of-lists/apis/baseapi.ts +++ b/samples/client/others/typescript/builds/array-of-lists/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/client/others/typescript/builds/array-of-lists/http/http.ts b/samples/client/others/typescript/builds/array-of-lists/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/client/others/typescript/builds/array-of-lists/http/http.ts +++ b/samples/client/others/typescript/builds/array-of-lists/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/client/others/typescript/builds/enum-single-value/apis/baseapi.ts b/samples/client/others/typescript/builds/enum-single-value/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/client/others/typescript/builds/enum-single-value/apis/baseapi.ts +++ b/samples/client/others/typescript/builds/enum-single-value/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/client/others/typescript/builds/enum-single-value/http/http.ts b/samples/client/others/typescript/builds/enum-single-value/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/client/others/typescript/builds/enum-single-value/http/http.ts +++ b/samples/client/others/typescript/builds/enum-single-value/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/client/others/typescript/builds/null-types-simple/apis/baseapi.ts b/samples/client/others/typescript/builds/null-types-simple/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/client/others/typescript/builds/null-types-simple/apis/baseapi.ts +++ b/samples/client/others/typescript/builds/null-types-simple/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/client/others/typescript/builds/null-types-simple/http/http.ts b/samples/client/others/typescript/builds/null-types-simple/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/client/others/typescript/builds/null-types-simple/http/http.ts +++ b/samples/client/others/typescript/builds/null-types-simple/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/client/others/typescript/builds/with-unique-items/apis/baseapi.ts b/samples/client/others/typescript/builds/with-unique-items/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/client/others/typescript/builds/with-unique-items/apis/baseapi.ts +++ b/samples/client/others/typescript/builds/with-unique-items/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/client/others/typescript/builds/with-unique-items/http/http.ts b/samples/client/others/typescript/builds/with-unique-items/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/client/others/typescript/builds/with-unique-items/http/http.ts +++ b/samples/client/others/typescript/builds/with-unique-items/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/client/others/typescript/encode-decode/build/apis/baseapi.ts b/samples/client/others/typescript/encode-decode/build/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/client/others/typescript/encode-decode/build/apis/baseapi.ts +++ b/samples/client/others/typescript/encode-decode/build/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/client/others/typescript/encode-decode/build/http/http.ts b/samples/client/others/typescript/encode-decode/build/http/http.ts index 17ecf0c4cab1..ab999019972f 100644 --- a/samples/client/others/typescript/encode-decode/build/http/http.ts +++ b/samples/client/others/typescript/encode-decode/build/http/http.ts @@ -243,9 +243,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/browser/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/browser/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/browser/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/browser/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/browser/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/default/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/default/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/default/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/default/http/http.ts index 17ecf0c4cab1..ab999019972f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/http/http.ts @@ -243,9 +243,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts index 46ed74bb556b..3e1df15888f6 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts index 231a58df3509..e0b00aa93548 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno/http/http.ts @@ -234,9 +234,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/baseapi.ts index 46ed74bb556b..3e1df15888f6 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/http/http.ts index 231a58df3509..e0b00aa93548 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno_object_params/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/deno_object_params/http/http.ts @@ -234,9 +234,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/http/http.ts index 17ecf0c4cab1..ab999019972f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/http/http.ts @@ -243,9 +243,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/baseapi.ts index 308d3aa57170..e77f444a553a 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/apis/baseapi.ts @@ -33,7 +33,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/inversify/http/http.ts index 17ecf0c4cab1..ab999019972f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/http/http.ts @@ -243,9 +243,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/jquery/http/http.ts index 46873c2517b1..1be4dcc11d29 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/nullable-enum/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/nullable-enum/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/nullable-enum/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/nullable-enum/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/nullable-enum/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/nullable-enum/http/http.ts index b0d0d479e219..64981afb818b 100644 --- a/samples/openapi3/client/petstore/typescript/builds/nullable-enum/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/nullable-enum/http/http.ts @@ -246,9 +246,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body); diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/baseapi.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/baseapi.ts index ce1e2dbc47e1..4c47d7cb15a0 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/apis/baseapi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/apis/baseapi.ts @@ -30,7 +30,7 @@ export class BaseAPIRequestFactory { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; + override name: "RequiredError" = "RequiredError"; constructor(public api: string, public method: string, public field: string) { super("Required parameter " + field + " was null or undefined when calling " + api + "." + method + "."); } diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/http/http.ts b/samples/openapi3/client/petstore/typescript/builds/object_params/http/http.ts index 17ecf0c4cab1..ab999019972f 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/http/http.ts @@ -243,9 +243,9 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib export class HttpInfo extends ResponseContext { public constructor( - public httpStatusCode: number, - public headers: Headers, - public body: ResponseBody, + httpStatusCode: number, + headers: Headers, + body: ResponseBody, public data: T, ) { super(httpStatusCode, headers, body);