@types/node 24.12.1 → 24.12.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 v24.12/README.md +1 -1
- node v24.12/net.d.ts +21 -2
- node v24.12/package.json +2 -2
- node v24.12/stream.d.ts +27 -4
node v24.12/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/v24.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Fri, 03 Apr 2026
|
|
11
|
+
* Last updated: Fri, 03 Apr 2026 11:14:41 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v24.12/net.d.ts
CHANGED
|
@@ -105,9 +105,14 @@ declare module "net" {
|
|
|
105
105
|
* See `Writable` stream `write()` method for more
|
|
106
106
|
* information.
|
|
107
107
|
* @since v0.1.90
|
|
108
|
-
* @param [encoding='utf8'] Only used when data is `string`.
|
|
109
108
|
*/
|
|
110
109
|
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Sends data on the socket, with an explicit encoding for string data.
|
|
112
|
+
* @see {@link Socket.write} for full details.
|
|
113
|
+
* @since v0.1.90
|
|
114
|
+
* @param [encoding='utf8'] Only used when data is `string`.
|
|
115
|
+
*/
|
|
111
116
|
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
112
117
|
/**
|
|
113
118
|
* Initiate a connection on a given socket.
|
|
@@ -347,12 +352,26 @@ declare module "net" {
|
|
|
347
352
|
*
|
|
348
353
|
* See `writable.end()` for further details.
|
|
349
354
|
* @since v0.1.90
|
|
350
|
-
* @param [encoding='utf8'] Only used when data is `string`.
|
|
351
355
|
* @param callback Optional callback for when the socket is finished.
|
|
352
356
|
* @return The socket itself.
|
|
353
357
|
*/
|
|
354
358
|
end(callback?: () => void): this;
|
|
359
|
+
/**
|
|
360
|
+
* Half-closes the socket, with one final chunk of data.
|
|
361
|
+
* @see {@link Socket.end} for full details.
|
|
362
|
+
* @since v0.1.90
|
|
363
|
+
* @param callback Optional callback for when the socket is finished.
|
|
364
|
+
* @return The socket itself.
|
|
365
|
+
*/
|
|
355
366
|
end(buffer: Uint8Array | string, callback?: () => void): this;
|
|
367
|
+
/**
|
|
368
|
+
* Half-closes the socket, with one final chunk of data.
|
|
369
|
+
* @see {@link Socket.end} for full details.
|
|
370
|
+
* @since v0.1.90
|
|
371
|
+
* @param [encoding='utf8'] Only used when data is `string`.
|
|
372
|
+
* @param callback Optional callback for when the socket is finished.
|
|
373
|
+
* @return The socket itself.
|
|
374
|
+
*/
|
|
356
375
|
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
|
|
357
376
|
/**
|
|
358
377
|
* events.EventEmitter
|
node v24.12/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "24.12.
|
|
3
|
+
"version": "24.12.2",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,6 +150,6 @@
|
|
|
150
150
|
"undici-types": "~7.16.0"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {},
|
|
153
|
-
"typesPublisherContentHash": "
|
|
153
|
+
"typesPublisherContentHash": "d7203ff42f0a932fc10105074ec5f78418782e8d306c14cb314ce869dff07f43",
|
|
154
154
|
"typeScriptVersion": "5.3"
|
|
155
155
|
}
|
node v24.12/stream.d.ts
CHANGED
|
@@ -863,11 +863,20 @@ declare module "stream" {
|
|
|
863
863
|
* @since v0.9.4
|
|
864
864
|
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
|
|
865
865
|
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
|
|
866
|
-
* @param [encoding='utf8'] The encoding, if `chunk` is a string.
|
|
867
866
|
* @param callback Callback for when this chunk of data is flushed.
|
|
868
867
|
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
869
868
|
*/
|
|
870
869
|
write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean;
|
|
870
|
+
/**
|
|
871
|
+
* Writes data to the stream, with an explicit encoding for string data.
|
|
872
|
+
* @see {@link Writable.write} for full details.
|
|
873
|
+
* @since v0.9.4
|
|
874
|
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
|
|
875
|
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
|
|
876
|
+
* @param encoding The encoding, if `chunk` is a string.
|
|
877
|
+
* @param callback Callback for when this chunk of data is flushed.
|
|
878
|
+
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
879
|
+
*/
|
|
871
880
|
write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean;
|
|
872
881
|
/**
|
|
873
882
|
* The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream.
|
|
@@ -892,13 +901,27 @@ declare module "stream" {
|
|
|
892
901
|
* // Writing more now is not allowed!
|
|
893
902
|
* ```
|
|
894
903
|
* @since v0.9.4
|
|
904
|
+
* @param cb Callback for when the stream is finished.
|
|
905
|
+
*/
|
|
906
|
+
end(cb?: () => void): this;
|
|
907
|
+
/**
|
|
908
|
+
* Signals that no more data will be written, with one final chunk of data.
|
|
909
|
+
* @see {@link Writable.end} for full details.
|
|
910
|
+
* @since v0.9.4
|
|
895
911
|
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
|
|
896
912
|
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
|
|
897
|
-
* @param
|
|
898
|
-
* @param callback Callback for when the stream is finished.
|
|
913
|
+
* @param cb Callback for when the stream is finished.
|
|
899
914
|
*/
|
|
900
|
-
end(cb?: () => void): this;
|
|
901
915
|
end(chunk: any, cb?: () => void): this;
|
|
916
|
+
/**
|
|
917
|
+
* Signals that no more data will be written, with one final chunk of data.
|
|
918
|
+
* @see {@link Writable.end} for full details.
|
|
919
|
+
* @since v0.9.4
|
|
920
|
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
|
|
921
|
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
|
|
922
|
+
* @param encoding The encoding if `chunk` is a string
|
|
923
|
+
* @param cb Callback for when the stream is finished.
|
|
924
|
+
*/
|
|
902
925
|
end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
|
|
903
926
|
/**
|
|
904
927
|
* The `writable.cork()` method forces all written data to be buffered in memory.
|