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 631a98ffba45..5b2ac5edec6b 100644 --- a/modules/openapi-generator/src/main/resources/typescript/http/http.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/http/http.mustache @@ -1,10 +1,10 @@ {{#platforms}} {{#node}} // TODO: evaluate if we can easily get rid of this library -import {{^supportsES6}}* as{{/supportsES6}} FormData from "form-data{{importFileExtension}}"; -import { URL, URLSearchParams } from 'url{{importFileExtension}}'; -import * as http from 'http{{importFileExtension}}'; -import * as https from 'https{{importFileExtension}}'; +import {{^supportsES6}}* as{{/supportsES6}} FormData from "form-data"; +import { URL, URLSearchParams } from 'url'; +import * as http from 'http'; +import * as https from 'https'; {{/node}} {{/platforms}} import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{importFileExtension}}'{{/useRxJS}}; @@ -169,7 +169,7 @@ export class RequestContext { } {{#platforms}} {{#node}} - + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } 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 a86684691d45..115d854c58b5 100644 --- a/samples/client/others/typescript/encode-decode/build/http/http.ts +++ b/samples/client/others/typescript/encode-decode/build/http/http.ts @@ -134,7 +134,7 @@ export class RequestContext { public setHeaderParam(key: string, value: string): void { this.headers[key] = value; } - + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } 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 a86684691d45..115d854c58b5 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/default/http/http.ts @@ -134,7 +134,7 @@ export class RequestContext { public setHeaderParam(key: string, value: string): void { this.headers[key] = value; } - + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } 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 a86684691d45..115d854c58b5 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 @@ -134,7 +134,7 @@ export class RequestContext { public setHeaderParam(key: string, value: string): void { this.headers[key] = value; } - + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } 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 11e424d29ac2..15b563c38ea6 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/http/http.ts +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/http/http.ts @@ -134,7 +134,7 @@ export class RequestContext { public setHeaderParam(key: string, value: string): void { this.headers[key] = value; } - + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } 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 a86684691d45..115d854c58b5 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 @@ -134,7 +134,7 @@ export class RequestContext { public setHeaderParam(key: string, value: string): void { this.headers[key] = value; } - + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; }