@types/node 22.15.17 → 22.15.19

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/globals.d.ts +1 -1
  3. node/net.d.ts +2 -2
  4. 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: 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
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](): NodeJS.AsyncIterator<string | Buffer>;
212
+ [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
213
213
  }
214
214
 
215
215
  interface WritableStream extends EventEmitter {
node/net.d.ts CHANGED
@@ -109,8 +109,8 @@ declare module "net" {
109
109
  * @since v0.1.90
110
110
  * @param [encoding='utf8'] Only used when data is `string`.
111
111
  */
112
- write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
113
- write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
112
+ write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
113
+ write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
114
114
  /**
115
115
  * Initiate a connection on a given socket.
116
116
  *
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.15.17",
3
+ "version": "22.15.19",
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": "fc6995b0ade0c0c7fd18806f0d2dd27d7dd424e1afc0efb8ee459ab933f67239",
223
+ "typesPublisherContentHash": "fbc82eed6851a954a325846f9ca512b2d29985ef58cd7dfc126d595106579e5d",
224
224
  "typeScriptVersion": "5.1"
225
225
  }