@types/node 20.19.6 → 20.19.7
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 v20.19/README.md +1 -1
- node v20.19/http.d.ts +3 -18
- node v20.19/package.json +2 -2
node v20.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/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Thu, 10 Jul 2025 19:02:57 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node v20.19/http.d.ts
CHANGED
@@ -44,7 +44,7 @@ declare module "http" {
|
|
44
44
|
import { URL } from "node:url";
|
45
45
|
import { LookupOptions } from "node:dns";
|
46
46
|
import { EventEmitter } from "node:events";
|
47
|
-
import { LookupFunction,
|
47
|
+
import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
|
48
48
|
// incoming headers will never contain number
|
49
49
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
50
50
|
accept?: string | undefined;
|
@@ -1449,21 +1449,6 @@ declare module "http" {
|
|
1449
1449
|
*/
|
1450
1450
|
scheduling?: "fifo" | "lifo" | undefined;
|
1451
1451
|
}
|
1452
|
-
interface AgentGetNameOptions {
|
1453
|
-
/**
|
1454
|
-
* A domain name or IP address of the server to issue the request to
|
1455
|
-
*/
|
1456
|
-
host?: string | undefined;
|
1457
|
-
/**
|
1458
|
-
* Port of remote server
|
1459
|
-
*/
|
1460
|
-
port?: number | undefined;
|
1461
|
-
/**
|
1462
|
-
* Local interface to bind for network connections when issuing the request
|
1463
|
-
*/
|
1464
|
-
localAddress?: string | undefined;
|
1465
|
-
family?: 4 | 6 | undefined;
|
1466
|
-
}
|
1467
1452
|
/**
|
1468
1453
|
* An `Agent` is responsible for managing connection persistence
|
1469
1454
|
* and reuse for HTTP clients. It maintains a queue of pending requests
|
@@ -1602,7 +1587,7 @@ declare module "http" {
|
|
1602
1587
|
* @param callback Callback function that receives the created socket
|
1603
1588
|
*/
|
1604
1589
|
createConnection(
|
1605
|
-
options:
|
1590
|
+
options: ClientRequestArgs,
|
1606
1591
|
callback?: (err: Error | null, stream: stream.Duplex) => void,
|
1607
1592
|
): stream.Duplex;
|
1608
1593
|
/**
|
@@ -1644,7 +1629,7 @@ declare module "http" {
|
|
1644
1629
|
* @since v0.11.4
|
1645
1630
|
* @param options A set of options providing information for name generation
|
1646
1631
|
*/
|
1647
|
-
getName(options?:
|
1632
|
+
getName(options?: ClientRequestArgs): string;
|
1648
1633
|
}
|
1649
1634
|
const METHODS: string[];
|
1650
1635
|
const STATUS_CODES: {
|
node v20.19/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.19.
|
3
|
+
"version": "20.19.7",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -215,6 +215,6 @@
|
|
215
215
|
"undici-types": "~6.21.0"
|
216
216
|
},
|
217
217
|
"peerDependencies": {},
|
218
|
-
"typesPublisherContentHash": "
|
218
|
+
"typesPublisherContentHash": "8248408aa04b997f7498253ecfaf815c7c0b5ad0b6c4a8f9f2239060584580c9",
|
219
219
|
"typeScriptVersion": "5.1"
|
220
220
|
}
|