@types/node 22.18.3 → 22.18.5

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 v22.18/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/v22.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 13 Sep 2025 00:03:47 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 v22.18/http.d.ts CHANGED
@@ -1591,7 +1591,7 @@ declare module "http" {
1591
1591
  createConnection(
1592
1592
  options: ClientRequestArgs,
1593
1593
  callback?: (err: Error | null, stream: stream.Duplex) => void,
1594
- ): stream.Duplex;
1594
+ ): stream.Duplex | null | undefined;
1595
1595
  /**
1596
1596
  * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to:
1597
1597
  *
node v22.18/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 v22.18/index.d.ts CHANGED
@@ -55,7 +55,6 @@
55
55
  /// <reference path="diagnostics_channel.d.ts" />
56
56
  /// <reference path="dns.d.ts" />
57
57
  /// <reference path="dns/promises.d.ts" />
58
- /// <reference path="dns/promises.d.ts" />
59
58
  /// <reference path="domain.d.ts" />
60
59
  /// <reference path="events.d.ts" />
61
60
  /// <reference path="fs.d.ts" />
@@ -63,7 +62,7 @@
63
62
  /// <reference path="http.d.ts" />
64
63
  /// <reference path="http2.d.ts" />
65
64
  /// <reference path="https.d.ts" />
66
- /// <reference path="inspector.d.ts" />
65
+ /// <reference path="inspector.generated.d.ts" />
67
66
  /// <reference path="module.d.ts" />
68
67
  /// <reference path="net.d.ts" />
69
68
  /// <reference path="os.d.ts" />
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.18.3",
3
+ "version": "22.18.5",
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": "~6.21.0"
141
141
  },
142
142
  "peerDependencies": {},
143
- "typesPublisherContentHash": "acbaf201149c3552c80f99f06f03140607c0267963779b7c3a1dac5f5de070b9",
143
+ "typesPublisherContentHash": "c3a028055a82b4b0690a719a5dde08dc62b2425af3276221316d6816564e6b6b",
144
144
  "typeScriptVersion": "5.2"
145
145
  }
@@ -55,7 +55,6 @@
55
55
  /// <reference path="../diagnostics_channel.d.ts" />
56
56
  /// <reference path="../dns.d.ts" />
57
57
  /// <reference path="../dns/promises.d.ts" />
58
- /// <reference path="../dns/promises.d.ts" />
59
58
  /// <reference path="../domain.d.ts" />
60
59
  /// <reference path="../events.d.ts" />
61
60
  /// <reference path="../fs.d.ts" />
@@ -63,7 +62,7 @@
63
62
  /// <reference path="../http.d.ts" />
64
63
  /// <reference path="../http2.d.ts" />
65
64
  /// <reference path="../https.d.ts" />
66
- /// <reference path="../inspector.d.ts" />
65
+ /// <reference path="../inspector.generated.d.ts" />
67
66
  /// <reference path="../module.d.ts" />
68
67
  /// <reference path="../net.d.ts" />
69
68
  /// <reference path="../os.d.ts" />