@types/node 24.5.1 → 24.5.2
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/package.json +2 -2
- node/worker_threads.d.ts +4 -3
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: Thu, 18 Sep 2025 00:04:03 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "24.5.
|
3
|
+
"version": "24.5.2",
|
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.12.0"
|
151
151
|
},
|
152
152
|
"peerDependencies": {},
|
153
|
-
"typesPublisherContentHash": "
|
153
|
+
"typesPublisherContentHash": "5df6870a3de1de1f3716802276fe0c64c2b3a2903d725578b50f533f42cfea46",
|
154
154
|
"typeScriptVersion": "5.2"
|
155
155
|
}
|
node/worker_threads.d.ts
CHANGED
@@ -63,6 +63,7 @@ declare module "worker_threads" {
|
|
63
63
|
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
64
64
|
import { URL } from "node:url";
|
65
65
|
import { HeapInfo } from "node:v8";
|
66
|
+
import { MessageEvent } from "undici-types";
|
66
67
|
const isInternalThread: boolean;
|
67
68
|
const isMainThread: boolean;
|
68
69
|
const parentPort: null | MessagePort;
|
@@ -574,18 +575,18 @@ declare module "worker_threads" {
|
|
574
575
|
* ```
|
575
576
|
* @since v15.4.0
|
576
577
|
*/
|
577
|
-
class BroadcastChannel {
|
578
|
+
class BroadcastChannel extends EventTarget {
|
578
579
|
readonly name: string;
|
579
580
|
/**
|
580
581
|
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
581
582
|
* @since v15.4.0
|
582
583
|
*/
|
583
|
-
onmessage: (message:
|
584
|
+
onmessage: (message: MessageEvent) => void;
|
584
585
|
/**
|
585
586
|
* Invoked with a received message cannot be deserialized.
|
586
587
|
* @since v15.4.0
|
587
588
|
*/
|
588
|
-
onmessageerror: (message:
|
589
|
+
onmessageerror: (message: MessageEvent) => void;
|
589
590
|
constructor(name: string);
|
590
591
|
/**
|
591
592
|
* Closes the `BroadcastChannel` connection.
|