@types/node 24.4.0 → 24.5.1

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: Sun, 14 Sep 2025 10:33:22 GMT
11
+ * Last updated: Tue, 16 Sep 2025 21:32:23 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/dns.d.ts CHANGED
@@ -830,6 +830,11 @@ declare module "dns" {
830
830
  * @default 4
831
831
  */
832
832
  tries?: number;
833
+ /**
834
+ * The max retry timeout, in milliseconds.
835
+ * @default 0
836
+ */
837
+ maxTimeout?: number | undefined;
833
838
  }
834
839
  /**
835
840
  * An independent resolver for DNS requests.
node/http.d.ts CHANGED
@@ -1419,6 +1419,14 @@ declare module "http" {
1419
1419
  */
1420
1420
  destroy(error?: Error): this;
1421
1421
  }
1422
+ interface ProxyEnv extends NodeJS.ProcessEnv {
1423
+ HTTP_PROXY?: string | undefined;
1424
+ HTTPS_PROXY?: string | undefined;
1425
+ NO_PROXY?: string | undefined;
1426
+ http_proxy?: string | undefined;
1427
+ https_proxy?: string | undefined;
1428
+ no_proxy?: string | undefined;
1429
+ }
1422
1430
  interface AgentOptions extends Partial<TcpSocketConnectOpts> {
1423
1431
  /**
1424
1432
  * Keep sockets around in a pool to be used by other requests in the future. Default = false
@@ -1450,6 +1458,22 @@ declare module "http" {
1450
1458
  * @default `lifo`
1451
1459
  */
1452
1460
  scheduling?: "fifo" | "lifo" | undefined;
1461
+ /**
1462
+ * Environment variables for proxy configuration. See
1463
+ * [Built-in Proxy Support](https://nodejs.org/docs/latest-v24.x/api/http.html#built-in-proxy-support) for details.
1464
+ * @since v24.5.0
1465
+ */
1466
+ proxyEnv?: ProxyEnv | undefined;
1467
+ /**
1468
+ * Default port to use when the port is not specified in requests.
1469
+ * @since v24.5.0
1470
+ */
1471
+ defaultPort?: number | undefined;
1472
+ /**
1473
+ * The protocol to use for the agent.
1474
+ * @since v24.5.0
1475
+ */
1476
+ protocol?: string | undefined;
1453
1477
  }
1454
1478
  /**
1455
1479
  * An `Agent` is responsible for managing connection persistence
@@ -1591,7 +1615,7 @@ declare module "http" {
1591
1615
  createConnection(
1592
1616
  options: ClientRequestArgs,
1593
1617
  callback?: (err: Error | null, stream: stream.Duplex) => void,
1594
- ): stream.Duplex;
1618
+ ): stream.Duplex | null | undefined;
1595
1619
  /**
1596
1620
  * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1597
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/index.d.ts CHANGED
@@ -57,7 +57,6 @@
57
57
  /// <reference path="diagnostics_channel.d.ts" />
58
58
  /// <reference path="dns.d.ts" />
59
59
  /// <reference path="dns/promises.d.ts" />
60
- /// <reference path="dns/promises.d.ts" />
61
60
  /// <reference path="domain.d.ts" />
62
61
  /// <reference path="events.d.ts" />
63
62
  /// <reference path="fs.d.ts" />
@@ -66,6 +65,7 @@
66
65
  /// <reference path="http2.d.ts" />
67
66
  /// <reference path="https.d.ts" />
68
67
  /// <reference path="inspector.d.ts" />
68
+ /// <reference path="inspector.generated.d.ts" />
69
69
  /// <reference path="module.d.ts" />
70
70
  /// <reference path="net.d.ts" />
71
71
  /// <reference path="os.d.ts" />