@types/node 22.15.18 → 22.15.21
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 +1 -1
- node/http.d.ts +4 -0
- node/net.d.ts +1 -1
- 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:
|
11
|
+
* Last updated: Tue, 20 May 2025 23:02:19 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/globals.d.ts
CHANGED
@@ -209,7 +209,7 @@ declare global {
|
|
209
209
|
unpipe(destination?: WritableStream): this;
|
210
210
|
unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
|
211
211
|
wrap(oldStream: ReadableStream): this;
|
212
|
-
[Symbol.asyncIterator]():
|
212
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
|
213
213
|
}
|
214
214
|
|
215
215
|
interface WritableStream extends EventEmitter {
|
node/http.d.ts
CHANGED
@@ -95,6 +95,10 @@ declare module "http" {
|
|
95
95
|
range?: string | undefined;
|
96
96
|
referer?: string | undefined;
|
97
97
|
"retry-after"?: string | undefined;
|
98
|
+
"sec-fetch-site"?: string | undefined;
|
99
|
+
"sec-fetch-mode"?: string | undefined;
|
100
|
+
"sec-fetch-user"?: string | undefined;
|
101
|
+
"sec-fetch-dest"?: string | undefined;
|
98
102
|
"sec-websocket-accept"?: string | undefined;
|
99
103
|
"sec-websocket-extensions"?: string | undefined;
|
100
104
|
"sec-websocket-key"?: string | undefined;
|
node/net.d.ts
CHANGED
@@ -662,7 +662,7 @@ declare module "net" {
|
|
662
662
|
* Callback should take two arguments `err` and `count`.
|
663
663
|
* @since v0.9.7
|
664
664
|
*/
|
665
|
-
getConnections(cb: (error: Error | null, count: number) => void):
|
665
|
+
getConnections(cb: (error: Error | null, count: number) => void): this;
|
666
666
|
/**
|
667
667
|
* Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior).
|
668
668
|
* If the server is `ref`ed calling `ref()` again will have no effect.
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "22.15.
|
3
|
+
"version": "22.15.21",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -220,6 +220,6 @@
|
|
220
220
|
"undici-types": "~6.21.0"
|
221
221
|
},
|
222
222
|
"peerDependencies": {},
|
223
|
-
"typesPublisherContentHash": "
|
223
|
+
"typesPublisherContentHash": "5d2f879a002d15b5c339ca2ceae4757f171fe11f54ad330e4325efc50af262a7",
|
224
224
|
"typeScriptVersion": "5.1"
|
225
225
|
}
|