@types/node 20.19.13 → 20.19.15

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.19/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, 04 Sep 2025 10:02:38 GMT
11
+ * Last updated: Mon, 15 Sep 2025 20:02:30 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v20.19/index.d.ts CHANGED
@@ -53,7 +53,6 @@
53
53
  /// <reference path="diagnostics_channel.d.ts" />
54
54
  /// <reference path="dns.d.ts" />
55
55
  /// <reference path="dns/promises.d.ts" />
56
- /// <reference path="dns/promises.d.ts" />
57
56
  /// <reference path="domain.d.ts" />
58
57
  /// <reference path="events.d.ts" />
59
58
  /// <reference path="fs.d.ts" />
@@ -61,7 +60,7 @@
61
60
  /// <reference path="http.d.ts" />
62
61
  /// <reference path="http2.d.ts" />
63
62
  /// <reference path="https.d.ts" />
64
- /// <reference path="inspector.d.ts" />
63
+ /// <reference path="inspector.generated.d.ts" />
65
64
  /// <reference path="module.d.ts" />
66
65
  /// <reference path="net.d.ts" />
67
66
  /// <reference path="os.d.ts" />
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.19.13",
3
+ "version": "20.19.15",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -135,6 +135,6 @@
135
135
  "undici-types": "~6.21.0"
136
136
  },
137
137
  "peerDependencies": {},
138
- "typesPublisherContentHash": "e87c75afb7f832f6a20856b957a708d5b06bac694552335f20eba8c8bc06d073",
138
+ "typesPublisherContentHash": "27d35f9ed04349e593586d7d39b94f4ac4d69bc98f624abb04d9d45b6157b368",
139
139
  "typeScriptVersion": "5.2"
140
140
  }
@@ -53,7 +53,6 @@
53
53
  /// <reference path="../diagnostics_channel.d.ts" />
54
54
  /// <reference path="../dns.d.ts" />
55
55
  /// <reference path="../dns/promises.d.ts" />
56
- /// <reference path="../dns/promises.d.ts" />
57
56
  /// <reference path="../domain.d.ts" />
58
57
  /// <reference path="../events.d.ts" />
59
58
  /// <reference path="../fs.d.ts" />
@@ -61,7 +60,7 @@
61
60
  /// <reference path="../http.d.ts" />
62
61
  /// <reference path="../http2.d.ts" />
63
62
  /// <reference path="../https.d.ts" />
64
- /// <reference path="../inspector.d.ts" />
63
+ /// <reference path="../inspector.generated.d.ts" />
65
64
  /// <reference path="../module.d.ts" />
66
65
  /// <reference path="../net.d.ts" />
67
66
  /// <reference path="../os.d.ts" />
@@ -676,6 +676,24 @@ declare module "worker_threads" {
676
676
  * for the `key` will be deleted.
677
677
  */
678
678
  function setEnvironmentData(key: Serializable, value?: Serializable): void;
679
+ /**
680
+ * Sends a value to another worker, identified by its thread ID.
681
+ * @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
682
+ * If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
683
+ * @param value The value to send.
684
+ * @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
685
+ * or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
686
+ * @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
687
+ * If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
688
+ * @since v22.5.0
689
+ */
690
+ function postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
691
+ function postMessageToThread(
692
+ threadId: number,
693
+ value: any,
694
+ transferList: readonly Transferable[],
695
+ timeout?: number,
696
+ ): Promise<void>;
679
697
 
680
698
  import {
681
699
  BroadcastChannel as _BroadcastChannel,