@types/node 22.0.1 → 22.0.2
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 +1 -1
- node/globals.d.ts +5 -0
- node/package.json +2 -2
node/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Wed, 31 Jul 2024
|
11
|
+
* Last updated: Wed, 31 Jul 2024 19:35:54 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/globals.d.ts
CHANGED
@@ -12,6 +12,7 @@ type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
|
|
12
12
|
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
|
13
13
|
: import("undici-types").ResponseInit;
|
14
14
|
type _File = typeof globalThis extends { onmessage: any } ? {} : import("node:buffer").File;
|
15
|
+
type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").WebSocket;
|
15
16
|
// #endregion Fetch and friends
|
16
17
|
|
17
18
|
declare global {
|
@@ -409,4 +410,8 @@ declare global {
|
|
409
410
|
File: infer T;
|
410
411
|
} ? T
|
411
412
|
: typeof import("node:buffer").File;
|
413
|
+
|
414
|
+
interface WebSocket extends _WebSocket {}
|
415
|
+
var WebSocket: typeof globalThis extends { onmessage: any; WebSocket: infer T } ? T
|
416
|
+
: typeof import("undici-types").WebSocket;
|
412
417
|
}
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "22.0.
|
3
|
+
"version": "22.0.2",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -212,6 +212,6 @@
|
|
212
212
|
"dependencies": {
|
213
213
|
"undici-types": "~6.11.1"
|
214
214
|
},
|
215
|
-
"typesPublisherContentHash": "
|
215
|
+
"typesPublisherContentHash": "267f76e0f5614a1901ec2541584e47f4fd2ec56699ffea3b30a9ec5019f1845d",
|
216
216
|
"typeScriptVersion": "4.8"
|
217
217
|
}
|