@types/node 24.5.0 → 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 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: 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/http.d.ts CHANGED
@@ -1615,7 +1615,7 @@ declare module "http" {
1615
1615
  createConnection(
1616
1616
  options: ClientRequestArgs,
1617
1617
  callback?: (err: Error | null, stream: stream.Duplex) => void,
1618
- ): stream.Duplex;
1618
+ ): stream.Duplex | null | undefined;
1619
1619
  /**
1620
1620
  * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1621
1621
  *
node/https.d.ts CHANGED
@@ -32,6 +32,11 @@ declare module "https" {
32
32
  class Agent extends http.Agent {
33
33
  constructor(options?: AgentOptions);
34
34
  options: AgentOptions;
35
+ createConnection(
36
+ options: RequestOptions,
37
+ callback?: (err: Error | null, stream: Duplex) => void,
38
+ ): Duplex | null | undefined;
39
+ getName(options?: RequestOptions): string;
35
40
  }
36
41
  interface Server<
37
42
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.5.0",
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": "9e50bdbd01c40dff0305ada6ea13f1c2663dcbfc108ae09fab45726ac985531a",
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: unknown) => void;
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: unknown) => void;
589
+ onmessageerror: (message: MessageEvent) => void;
589
590
  constructor(name: string);
590
591
  /**
591
592
  * Closes the `BroadcastChannel` connection.