@types/node 22.16.1 → 22.16.3
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 v22.16/README.md +1 -1
- node v22.16/buffer.d.ts +3 -0
- node v22.16/http.d.ts +3 -18
- node v22.16/package.json +2 -2
node v22.16/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/v22.
|
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 v22.16/buffer.d.ts
CHANGED
@@ -1773,6 +1773,7 @@ declare module "buffer" {
|
|
1773
1773
|
* @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
1774
1774
|
*/
|
1775
1775
|
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
1776
|
+
indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
1776
1777
|
/**
|
1777
1778
|
* Identical to `buf.indexOf()`, except the last occurrence of `value` is found
|
1778
1779
|
* rather than the first occurrence.
|
@@ -1841,6 +1842,7 @@ declare module "buffer" {
|
|
1841
1842
|
* @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
1842
1843
|
*/
|
1843
1844
|
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
1845
|
+
lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
1844
1846
|
/**
|
1845
1847
|
* Equivalent to `buf.indexOf() !== -1`.
|
1846
1848
|
*
|
@@ -1871,6 +1873,7 @@ declare module "buffer" {
|
|
1871
1873
|
* @return `true` if `value` was found in `buf`, `false` otherwise.
|
1872
1874
|
*/
|
1873
1875
|
includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
|
1876
|
+
includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
|
1874
1877
|
}
|
1875
1878
|
var Buffer: BufferConstructor;
|
1876
1879
|
/**
|
node v22.16/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 v22.16/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "22.16.
|
3
|
+
"version": "22.16.3",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -220,6 +220,6 @@
|
|
220
220
|
"undici-types": "~6.21.0"
|
221
221
|
},
|
222
222
|
"peerDependencies": {},
|
223
|
-
"typesPublisherContentHash": "
|
223
|
+
"typesPublisherContentHash": "7159d16cfd01c052bbb85f0987775b21301e2769ae8b3305f8b90e868d05deea",
|
224
224
|
"typeScriptVersion": "5.1"
|
225
225
|
}
|