@types/node 20.11.22 → 20.11.23

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/http.d.ts +4 -2
  3. node/package.json +2 -2
  4. node/ts4.8/http.d.ts +4 -2
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: 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/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;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.11.22",
3
+ "version": "20.11.23",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,6 +224,6 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "22bca6c00c1ff5a6ee266c15857a090c7538d380d2b735f404ffa90cc67128dd",
227
+ "typesPublisherContentHash": "886a219b9bb079845d8c96a7c46ff631c7073b8ef564a805a31cc7ca19a6f77c",
228
228
  "typeScriptVersion": "4.6"
229
229
  }
node/ts4.8/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;