@types/node 24.0.12 → 24.0.13
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 +1 -1
- node/http.d.ts +3 -18
- node/package.json +2 -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:
|
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/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;
|
@@ -1451,21 +1451,6 @@ declare module "http" {
|
|
1451
1451
|
*/
|
1452
1452
|
scheduling?: "fifo" | "lifo" | undefined;
|
1453
1453
|
}
|
1454
|
-
interface AgentGetNameOptions {
|
1455
|
-
/**
|
1456
|
-
* A domain name or IP address of the server to issue the request to
|
1457
|
-
*/
|
1458
|
-
host?: string | undefined;
|
1459
|
-
/**
|
1460
|
-
* Port of remote server
|
1461
|
-
*/
|
1462
|
-
port?: number | undefined;
|
1463
|
-
/**
|
1464
|
-
* Local interface to bind for network connections when issuing the request
|
1465
|
-
*/
|
1466
|
-
localAddress?: string | undefined;
|
1467
|
-
family?: 4 | 6 | undefined;
|
1468
|
-
}
|
1469
1454
|
/**
|
1470
1455
|
* An `Agent` is responsible for managing connection persistence
|
1471
1456
|
* and reuse for HTTP clients. It maintains a queue of pending requests
|
@@ -1604,7 +1589,7 @@ declare module "http" {
|
|
1604
1589
|
* @param callback Callback function that receives the created socket
|
1605
1590
|
*/
|
1606
1591
|
createConnection(
|
1607
|
-
options:
|
1592
|
+
options: ClientRequestArgs,
|
1608
1593
|
callback?: (err: Error | null, stream: stream.Duplex) => void,
|
1609
1594
|
): stream.Duplex;
|
1610
1595
|
/**
|
@@ -1646,7 +1631,7 @@ declare module "http" {
|
|
1646
1631
|
* @since v0.11.4
|
1647
1632
|
* @param options A set of options providing information for name generation
|
1648
1633
|
*/
|
1649
|
-
getName(options?:
|
1634
|
+
getName(options?: ClientRequestArgs): string;
|
1650
1635
|
}
|
1651
1636
|
const METHODS: string[];
|
1652
1637
|
const STATUS_CODES: {
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "24.0.
|
3
|
+
"version": "24.0.13",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -235,6 +235,6 @@
|
|
235
235
|
"undici-types": "~7.8.0"
|
236
236
|
},
|
237
237
|
"peerDependencies": {},
|
238
|
-
"typesPublisherContentHash": "
|
238
|
+
"typesPublisherContentHash": "87f3760d7938b70e0ce621dcf56dd6a85be123eeda2c2c819a783a4b1b6b89d8",
|
239
239
|
"typeScriptVersion": "5.1"
|
240
240
|
}
|