@types/node 20.19.16 → 20.19.17

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: 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": "20.19.16",
3
+ "version": "20.19.17",
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": "b8ad83c57c3429d12ae8afeb3490a5a76bb8fe42a17f256e9653dcf4d8c2d54e",
138
+ "typesPublisherContentHash": "18a95350e2e7399cc51ac86ea7180283f82d3faf51d4545bc9de4d0e79a6395d",
139
139
  "typeScriptVersion": "5.2"
140
140
  }
@@ -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;
@@ -544,18 +545,18 @@ declare module "worker_threads" {
544
545
  * ```
545
546
  * @since v15.4.0
546
547
  */
547
- class BroadcastChannel {
548
+ class BroadcastChannel extends EventTarget {
548
549
  readonly name: string;
549
550
  /**
550
551
  * Invoked with a single \`MessageEvent\` argument when a message is received.
551
552
  * @since v15.4.0
552
553
  */
553
- onmessage: (message: unknown) => void;
554
+ onmessage: (message: MessageEvent) => void;
554
555
  /**
555
556
  * Invoked with a received message cannot be deserialized.
556
557
  * @since v15.4.0
557
558
  */
558
- onmessageerror: (message: unknown) => void;
559
+ onmessageerror: (message: MessageEvent) => void;
559
560
  constructor(name: string);
560
561
  /**
561
562
  * Closes the `BroadcastChannel` connection.