@types/node 20.8.3 → 20.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node/README.md +3 -3
- node/globals.d.ts +58 -0
- node/package.json +5 -3
- node/ts4.8/globals.d.ts +58 -0
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
12
|
-
* Dependencies:
|
|
13
|
-
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
11
|
+
* Last updated: Mon, 09 Oct 2023 17:35:36 GMT
|
|
12
|
+
* Dependencies: [@types/undici-types](https://npmjs.com/package/@types/undici-types)
|
|
13
|
+
* Global values: `AbortController`, `AbortSignal`, `FormData`, `Headers`, `Request`, `Response`, `__dirname`, `__filename`, `console`, `exports`, `fetch`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|
node/globals.d.ts
CHANGED
|
@@ -320,4 +320,62 @@ declare namespace NodeJS {
|
|
|
320
320
|
interface ReadOnlyDict<T> {
|
|
321
321
|
readonly [key: string]: T | undefined;
|
|
322
322
|
}
|
|
323
|
+
|
|
324
|
+
namespace fetch {
|
|
325
|
+
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
|
326
|
+
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
|
327
|
+
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
|
328
|
+
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
|
329
|
+
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
330
|
+
: import("undici-types").RequestInit;
|
|
331
|
+
type Request = globalThis.Request;
|
|
332
|
+
type Response = globalThis.Response;
|
|
333
|
+
type Headers = globalThis.Headers;
|
|
334
|
+
type FormData = globalThis.FormData;
|
|
335
|
+
type RequestInit = globalThis.RequestInit;
|
|
336
|
+
type RequestInfo = import("undici-types").RequestInfo;
|
|
337
|
+
type HeadersInit = import("undici-types").HeadersInit;
|
|
338
|
+
type BodyInit = import("undici-types").BodyInit;
|
|
339
|
+
type RequestRedirect = import("undici-types").RequestRedirect;
|
|
340
|
+
type RequestCredentials = import("undici-types").RequestCredentials;
|
|
341
|
+
type RequestMode = import("undici-types").RequestMode;
|
|
342
|
+
type ReferrerPolicy = import("undici-types").ReferrerPolicy;
|
|
343
|
+
type Dispatcher = import("undici-types").Dispatcher;
|
|
344
|
+
type RequestDuplex = import("undici-types").RequestDuplex;
|
|
345
|
+
}
|
|
323
346
|
}
|
|
347
|
+
|
|
348
|
+
interface RequestInit extends NodeJS.fetch._RequestInit {}
|
|
349
|
+
|
|
350
|
+
declare function fetch(
|
|
351
|
+
input: NodeJS.fetch.RequestInfo,
|
|
352
|
+
init?: RequestInit,
|
|
353
|
+
): Promise<Response>;
|
|
354
|
+
|
|
355
|
+
interface Request extends NodeJS.fetch._Request {}
|
|
356
|
+
declare var Request: typeof globalThis extends {
|
|
357
|
+
onmessage: any;
|
|
358
|
+
Request: infer T;
|
|
359
|
+
} ? T
|
|
360
|
+
: typeof import("undici-types").Request;
|
|
361
|
+
|
|
362
|
+
interface Response extends NodeJS.fetch._Response {}
|
|
363
|
+
declare var Response: typeof globalThis extends {
|
|
364
|
+
onmessage: any;
|
|
365
|
+
Response: infer T;
|
|
366
|
+
} ? T
|
|
367
|
+
: typeof import("undici-types").Response;
|
|
368
|
+
|
|
369
|
+
interface FormData extends NodeJS.fetch._FormData {}
|
|
370
|
+
declare var FormData: typeof globalThis extends {
|
|
371
|
+
onmessage: any;
|
|
372
|
+
FormData: infer T;
|
|
373
|
+
} ? T
|
|
374
|
+
: typeof import("undici-types").FormData;
|
|
375
|
+
|
|
376
|
+
interface Headers extends NodeJS.fetch._Headers {}
|
|
377
|
+
declare var Headers: typeof globalThis extends {
|
|
378
|
+
onmessage: any;
|
|
379
|
+
Headers: infer T;
|
|
380
|
+
} ? T
|
|
381
|
+
: typeof import("undici-types").Headers;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.8.
|
|
3
|
+
"version": "20.8.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -226,7 +226,9 @@
|
|
|
226
226
|
"directory": "types/node"
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
|
-
"dependencies": {
|
|
230
|
-
|
|
229
|
+
"dependencies": {
|
|
230
|
+
"undici-types": "~5.25.1"
|
|
231
|
+
},
|
|
232
|
+
"typesPublisherContentHash": "2838dc399a85e9b85a3a405ba23ca1871738adf3d0908db1877a2e5c39a9f7a6",
|
|
231
233
|
"typeScriptVersion": "4.5"
|
|
232
234
|
}
|
node/ts4.8/globals.d.ts
CHANGED
|
@@ -320,4 +320,62 @@ declare namespace NodeJS {
|
|
|
320
320
|
interface ReadOnlyDict<T> {
|
|
321
321
|
readonly [key: string]: T | undefined;
|
|
322
322
|
}
|
|
323
|
+
|
|
324
|
+
namespace fetch {
|
|
325
|
+
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
|
|
326
|
+
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
|
|
327
|
+
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
|
|
328
|
+
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
|
|
329
|
+
type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
330
|
+
: import("undici-types").RequestInit;
|
|
331
|
+
type Request = globalThis.Request;
|
|
332
|
+
type Response = globalThis.Response;
|
|
333
|
+
type Headers = globalThis.Headers;
|
|
334
|
+
type FormData = globalThis.FormData;
|
|
335
|
+
type RequestInit = globalThis.RequestInit;
|
|
336
|
+
type RequestInfo = import("undici-types").RequestInfo;
|
|
337
|
+
type HeadersInit = import("undici-types").HeadersInit;
|
|
338
|
+
type BodyInit = import("undici-types").BodyInit;
|
|
339
|
+
type RequestRedirect = import("undici-types").RequestRedirect;
|
|
340
|
+
type RequestCredentials = import("undici-types").RequestCredentials;
|
|
341
|
+
type RequestMode = import("undici-types").RequestMode;
|
|
342
|
+
type ReferrerPolicy = import("undici-types").ReferrerPolicy;
|
|
343
|
+
type Dispatcher = import("undici-types").Dispatcher;
|
|
344
|
+
type RequestDuplex = import("undici-types").RequestDuplex;
|
|
345
|
+
}
|
|
323
346
|
}
|
|
347
|
+
|
|
348
|
+
interface RequestInit extends NodeJS.fetch._RequestInit {}
|
|
349
|
+
|
|
350
|
+
declare function fetch(
|
|
351
|
+
input: NodeJS.fetch.RequestInfo,
|
|
352
|
+
init?: RequestInit,
|
|
353
|
+
): Promise<Response>;
|
|
354
|
+
|
|
355
|
+
interface Request extends NodeJS.fetch._Request {}
|
|
356
|
+
declare var Request: typeof globalThis extends {
|
|
357
|
+
onmessage: any;
|
|
358
|
+
Request: infer T;
|
|
359
|
+
} ? T
|
|
360
|
+
: typeof import("undici-types").Request;
|
|
361
|
+
|
|
362
|
+
interface Response extends NodeJS.fetch._Response {}
|
|
363
|
+
declare var Response: typeof globalThis extends {
|
|
364
|
+
onmessage: any;
|
|
365
|
+
Response: infer T;
|
|
366
|
+
} ? T
|
|
367
|
+
: typeof import("undici-types").Response;
|
|
368
|
+
|
|
369
|
+
interface FormData extends NodeJS.fetch._FormData {}
|
|
370
|
+
declare var FormData: typeof globalThis extends {
|
|
371
|
+
onmessage: any;
|
|
372
|
+
FormData: infer T;
|
|
373
|
+
} ? T
|
|
374
|
+
: typeof import("undici-types").FormData;
|
|
375
|
+
|
|
376
|
+
interface Headers extends NodeJS.fetch._Headers {}
|
|
377
|
+
declare var Headers: typeof globalThis extends {
|
|
378
|
+
onmessage: any;
|
|
379
|
+
Headers: infer T;
|
|
380
|
+
} ? T
|
|
381
|
+
: typeof import("undici-types").Headers;
|