@types/node 20.17.46 → 20.17.48

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 v20.17/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/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 08 May 2025 14:02:18 GMT
11
+ * Last updated: Mon, 19 May 2025 00:47:06 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -196,7 +196,7 @@ declare global {
196
196
  unpipe(destination?: WritableStream): this;
197
197
  unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
198
198
  wrap(oldStream: ReadableStream): this;
199
- [Symbol.asyncIterator](): NodeJS.AsyncIterator<string | Buffer>;
199
+ [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
200
200
  }
201
201
 
202
202
  interface WritableStream extends EventEmitter {
node v20.17/net.d.ts CHANGED
@@ -112,8 +112,8 @@ declare module "net" {
112
112
  * @since v0.1.90
113
113
  * @param [encoding='utf8'] Only used when data is `string`.
114
114
  */
115
- write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
116
- write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
115
+ write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
116
+ write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
117
117
  /**
118
118
  * Initiate a connection on a given socket.
119
119
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.17.46",
3
+ "version": "20.17.48",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  "undici-types": "~6.19.2"
216
216
  },
217
217
  "peerDependencies": {},
218
- "typesPublisherContentHash": "254b6abbad575f913cc04add19b967cb738b6a5e8de645e2a14b635ed10c40fa",
218
+ "typesPublisherContentHash": "2f1a5346e1b0aca0b442176f3c3d79870479f03eb62977e4d88b284d9be42cd9",
219
219
  "typeScriptVersion": "5.1"
220
220
  }