@types/node 20.19.5 → 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/buffer.d.ts +3 -0
- 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/buffer.d.ts
CHANGED
@@ -1774,6 +1774,7 @@ declare module "buffer" {
|
|
1774
1774
|
* @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
1775
1775
|
*/
|
1776
1776
|
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
1777
|
+
indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
1777
1778
|
/**
|
1778
1779
|
* Identical to `buf.indexOf()`, except the last occurrence of `value` is found
|
1779
1780
|
* rather than the first occurrence.
|
@@ -1842,6 +1843,7 @@ declare module "buffer" {
|
|
1842
1843
|
* @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
1843
1844
|
*/
|
1844
1845
|
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
1846
|
+
lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
1845
1847
|
/**
|
1846
1848
|
* Equivalent to `buf.indexOf() !== -1`.
|
1847
1849
|
*
|
@@ -1872,6 +1874,7 @@ declare module "buffer" {
|
|
1872
1874
|
* @return `true` if `value` was found in `buf`, `false` otherwise.
|
1873
1875
|
*/
|
1874
1876
|
includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
|
1877
|
+
includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
|
1875
1878
|
}
|
1876
1879
|
var Buffer: BufferConstructor;
|
1877
1880
|
/**
|
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
|
}
|