Skip to content

Commit d06ed32

Browse files
davidgameroDavid Gamero
andauthored
[typescript] use built-in abortsignal (#21741)
* use built in * upgrade types from pinned fetch * samples * csharp samples * merge master and samples --------- Co-authored-by: David Gamero <[email protected]>
1 parent 490de02 commit d06ed32

File tree

17 files changed

+417
-118
lines changed

17 files changed

+417
-118
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {{^supportsES6}}* as{{/supportsES6}} FormData from "form-data";
55
import { URL, URLSearchParams } from 'url';
66
import * as http from 'http';
77
import * as https from 'https';
8-
import { AbortSignal } from "node-fetch/externals";
98
{{/node}}
109
{{/platforms}}
1110
import { Observable, from } from {{#useRxJS}}'rxjs'{{/useRxJS}}{{^useRxJS}}'../rxjsStub{{importFileExtension}}'{{/useRxJS}};

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
{{#fetch-api}}
4747
{{#platforms}}
4848
{{#node}}
49-
"node-fetch": "^2.6.0",
50-
"@types/node-fetch": "^2.5.7",
49+
"node-fetch": "^2.7.0",
50+
"@types/node-fetch": "^2.6.13",
5151
{{/node}}
5252
{{#browser}}
5353
"whatwg-fetch": "^3.0.0",
@@ -61,7 +61,7 @@
6161
{{/frameworks}}
6262
{{#platforms}}
6363
{{#node}}
64-
"@types/node": "*",
64+
"@types/node": "^16.18.126",
6565
"form-data": "^4.0.4",
6666
{{/node}}
6767
{{/platforms}}

samples/client/echo_api/typescript/build/http/http.ts

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

samples/client/echo_api/typescript/build/package.json

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/encode-decode/build/http/http.ts

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

samples/client/others/typescript/encode-decode/build/package.json

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/openapi3/client/petstore/typescript/builds/default/http/http.ts

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

0 commit comments

Comments
 (0)