@types/node 20.19.15 → 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: Mon, 15 Sep 2025 20:02:30 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
node v20.19/http.d.ts CHANGED
@@ -1589,7 +1589,7 @@ declare module "http" {
1589
1589
  createConnection(
1590
1590
  options: ClientRequestArgs,
1591
1591
  callback?: (err: Error | null, stream: stream.Duplex) => void,
1592
- ): stream.Duplex;
1592
+ ): stream.Duplex | null | undefined;
1593
1593
  /**
1594
1594
  * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1595
1595
  *
node v20.19/https.d.ts CHANGED
@@ -31,6 +31,11 @@ declare module "https" {
31
31
  class Agent extends http.Agent {
32
32
  constructor(options?: AgentOptions);
33
33
  options: AgentOptions;
34
+ createConnection(
35
+ options: RequestOptions,
36
+ callback?: (err: Error | null, stream: Duplex) => void,
37
+ ): Duplex | null | undefined;
38
+ getName(options?: RequestOptions): string;
34
39
  }
35
40
  interface Server<
36
41
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.19.15",
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": "27d35f9ed04349e593586d7d39b94f4ac4d69bc98f624abb04d9d45b6157b368",
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.