@types/node 24.3.1 → 24.3.3
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/http.d.ts +3 -3
- node/package.json +2 -2
- node/worker_threads.d.ts +18 -0
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:
|
11
|
+
* Last updated: Sat, 13 Sep 2025 00:03:47 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/http.d.ts
CHANGED
@@ -2031,15 +2031,15 @@ declare module "http" {
|
|
2031
2031
|
* A browser-compatible implementation of [WebSocket](https://nodejs.org/docs/latest/api/http.html#websocket).
|
2032
2032
|
* @since v22.5.0
|
2033
2033
|
*/
|
2034
|
-
const WebSocket: import("undici-types").WebSocket;
|
2034
|
+
const WebSocket: typeof import("undici-types").WebSocket;
|
2035
2035
|
/**
|
2036
2036
|
* @since v22.5.0
|
2037
2037
|
*/
|
2038
|
-
const CloseEvent: import("undici-types").CloseEvent;
|
2038
|
+
const CloseEvent: typeof import("undici-types").CloseEvent;
|
2039
2039
|
/**
|
2040
2040
|
* @since v22.5.0
|
2041
2041
|
*/
|
2042
|
-
const MessageEvent: import("undici-types").MessageEvent;
|
2042
|
+
const MessageEvent: typeof import("undici-types").MessageEvent;
|
2043
2043
|
}
|
2044
2044
|
declare module "node:http" {
|
2045
2045
|
export * from "http";
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "24.3.
|
3
|
+
"version": "24.3.3",
|
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.10.0"
|
151
151
|
},
|
152
152
|
"peerDependencies": {},
|
153
|
-
"typesPublisherContentHash": "
|
153
|
+
"typesPublisherContentHash": "a3f14f4b918a5a1f39810be4400298da6dfce73b2b13de8e6fabb50fd07f6d07",
|
154
154
|
"typeScriptVersion": "5.2"
|
155
155
|
}
|
node/worker_threads.d.ts
CHANGED
@@ -739,6 +739,24 @@ declare module "worker_threads" {
|
|
739
739
|
* for the `key` will be deleted.
|
740
740
|
*/
|
741
741
|
function setEnvironmentData(key: Serializable, value?: Serializable): void;
|
742
|
+
/**
|
743
|
+
* Sends a value to another worker, identified by its thread ID.
|
744
|
+
* @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
|
745
|
+
* If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
|
746
|
+
* @param value The value to send.
|
747
|
+
* @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
|
748
|
+
* or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
|
749
|
+
* @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
|
750
|
+
* If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
|
751
|
+
* @since v22.5.0
|
752
|
+
*/
|
753
|
+
function postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
|
754
|
+
function postMessageToThread(
|
755
|
+
threadId: number,
|
756
|
+
value: any,
|
757
|
+
transferList: readonly Transferable[],
|
758
|
+
timeout?: number,
|
759
|
+
): Promise<void>;
|
742
760
|
|
743
761
|
import {
|
744
762
|
BroadcastChannel as _BroadcastChannel,
|