@types/node 18.19.126 → 18.19.127

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 v18.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/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 16 Sep 2025 21:32:23 GMT
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.126",
3
+ "version": "18.19.127",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -140,6 +140,6 @@
140
140
  "undici-types": "~5.26.4"
141
141
  },
142
142
  "peerDependencies": {},
143
- "typesPublisherContentHash": "1eacf848f548bc0e39b84a8cb89794b19363e97ce7a5feb01b6abb3b7dc1aaef",
143
+ "typesPublisherContentHash": "7633adf99df0dc9e54b5f2153381f9440d33af8d950953d4c85c436e21dfdefb",
144
144
  "typeScriptVersion": "5.2"
145
145
  }
@@ -59,6 +59,7 @@ declare module "worker_threads" {
59
59
  import { Readable, Writable } from "node:stream";
60
60
  import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
61
61
  import { URL } from "node:url";
62
+ import { MessageEvent } from "undici-types";
62
63
  const isMainThread: boolean;
63
64
  const parentPort: null | MessagePort;
64
65
  const resourceLimits: ResourceLimits;
@@ -525,18 +526,18 @@ declare module "worker_threads" {
525
526
  * ```
526
527
  * @since v15.4.0
527
528
  */
528
- class BroadcastChannel {
529
+ class BroadcastChannel extends EventTarget {
529
530
  readonly name: string;
530
531
  /**
531
532
  * Invoked with a single \`MessageEvent\` argument when a message is received.
532
533
  * @since v15.4.0
533
534
  */
534
- onmessage: (message: unknown) => void;
535
+ onmessage: (message: MessageEvent) => void;
535
536
  /**
536
537
  * Invoked with a received message cannot be deserialized.
537
538
  * @since v15.4.0
538
539
  */
539
- onmessageerror: (message: unknown) => void;
540
+ onmessageerror: (message: MessageEvent) => void;
540
541
  constructor(name: string);
541
542
  /**
542
543
  * Closes the `BroadcastChannel` connection.