@types/node 22.15.12 → 22.15.14
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/diagnostics_channel.d.ts +1 -1
- node/net.d.ts +12 -6
- 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: Tue, 06 May 2025
|
11
|
+
* Last updated: Tue, 06 May 2025 18:02:39 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/diagnostics_channel.d.ts
CHANGED
@@ -259,7 +259,7 @@ declare module "diagnostics_channel" {
|
|
259
259
|
* @param store The store to unbind from the channel.
|
260
260
|
* @return `true` if the store was found, `false` otherwise.
|
261
261
|
*/
|
262
|
-
unbindStore(store:
|
262
|
+
unbindStore(store: AsyncLocalStorage<StoreType>): boolean;
|
263
263
|
/**
|
264
264
|
* Applies the given data to any AsyncLocalStorage instances bound to the channel
|
265
265
|
* for the duration of the given function, then publishes to the channel within
|
node/net.d.ts
CHANGED
@@ -377,7 +377,7 @@ declare module "net" {
|
|
377
377
|
addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
378
378
|
addListener(
|
379
379
|
event: "connectionAttemptFailed",
|
380
|
-
listener: (ip: string, port: number, family: number) => void,
|
380
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
381
381
|
): this;
|
382
382
|
addListener(
|
383
383
|
event: "connectionAttemptTimeout",
|
@@ -397,7 +397,7 @@ declare module "net" {
|
|
397
397
|
emit(event: "close", hadError: boolean): boolean;
|
398
398
|
emit(event: "connect"): boolean;
|
399
399
|
emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
|
400
|
-
emit(event: "connectionAttemptFailed", ip: string, port: number, family: number): boolean;
|
400
|
+
emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean;
|
401
401
|
emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
|
402
402
|
emit(event: "data", data: Buffer): boolean;
|
403
403
|
emit(event: "drain"): boolean;
|
@@ -410,7 +410,10 @@ declare module "net" {
|
|
410
410
|
on(event: "close", listener: (hadError: boolean) => void): this;
|
411
411
|
on(event: "connect", listener: () => void): this;
|
412
412
|
on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
413
|
-
on(
|
413
|
+
on(
|
414
|
+
event: "connectionAttemptFailed",
|
415
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
416
|
+
): this;
|
414
417
|
on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
415
418
|
on(event: "data", listener: (data: Buffer) => void): this;
|
416
419
|
on(event: "drain", listener: () => void): this;
|
@@ -425,7 +428,10 @@ declare module "net" {
|
|
425
428
|
once(event: string, listener: (...args: any[]) => void): this;
|
426
429
|
once(event: "close", listener: (hadError: boolean) => void): this;
|
427
430
|
once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
428
|
-
once(
|
431
|
+
once(
|
432
|
+
event: "connectionAttemptFailed",
|
433
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
434
|
+
): this;
|
429
435
|
once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
430
436
|
once(event: "connect", listener: () => void): this;
|
431
437
|
once(event: "data", listener: (data: Buffer) => void): this;
|
@@ -444,7 +450,7 @@ declare module "net" {
|
|
444
450
|
prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
445
451
|
prependListener(
|
446
452
|
event: "connectionAttemptFailed",
|
447
|
-
listener: (ip: string, port: number, family: number) => void,
|
453
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
448
454
|
): this;
|
449
455
|
prependListener(
|
450
456
|
event: "connectionAttemptTimeout",
|
@@ -469,7 +475,7 @@ declare module "net" {
|
|
469
475
|
): this;
|
470
476
|
prependOnceListener(
|
471
477
|
event: "connectionAttemptFailed",
|
472
|
-
listener: (ip: string, port: number, family: number) => void,
|
478
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
473
479
|
): this;
|
474
480
|
prependOnceListener(
|
475
481
|
event: "connectionAttemptTimeout",
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "22.15.
|
3
|
+
"version": "22.15.14",
|
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": "ffc2a6547f97ecddd3c3a0571777c7a02a04de14e127c1a7e02d89c998e27371",
|
224
224
|
"typeScriptVersion": "5.1"
|
225
225
|
}
|