@types/node 18.19.20 → 18.19.21

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 v18.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/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 28 Feb 2024 17:35:47 GMT
11
+ * Last updated: Thu, 29 Feb 2024 11:38:44 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v18.19/http.d.ts CHANGED
@@ -198,9 +198,11 @@ declare module "http" {
198
198
  _defaultAgent?: Agent | undefined;
199
199
  agent?: Agent | boolean | undefined;
200
200
  auth?: string | null | undefined;
201
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
202
201
  createConnection?:
203
- | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
202
+ | ((
203
+ options: ClientRequestArgs,
204
+ oncreate: (err: Error | null, socket: stream.Duplex) => void,
205
+ ) => stream.Duplex | null | undefined)
204
206
  | undefined;
205
207
  defaultPort?: number | string | undefined;
206
208
  family?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.20",
3
+ "version": "18.19.21",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -229,6 +229,6 @@
229
229
  "dependencies": {
230
230
  "undici-types": "~5.26.4"
231
231
  },
232
- "typesPublisherContentHash": "60b8cb6fa4fee8f0fbe82feb9500f5299ee3edb2d5b4a76daf4d7026561bf980",
232
+ "typesPublisherContentHash": "a05523df3c7753757900f87de2c13342d0d4d663283bdff61d20025b303d717c",
233
233
  "typeScriptVersion": "4.6"
234
234
  }
@@ -198,9 +198,11 @@ declare module "http" {
198
198
  _defaultAgent?: Agent | undefined;
199
199
  agent?: Agent | boolean | undefined;
200
200
  auth?: string | null | undefined;
201
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
202
201
  createConnection?:
203
- | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
202
+ | ((
203
+ options: ClientRequestArgs,
204
+ oncreate: (err: Error | null, socket: stream.Duplex) => void,
205
+ ) => stream.Duplex | null | undefined)
204
206
  | undefined;
205
207
  defaultPort?: number | string | undefined;
206
208
  family?: number | undefined;