@types/node 18.19.116 → 18.19.118
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 v18.19/README.md +1 -1
- node v18.19/buffer.d.ts +3 -0
- node v18.19/http.d.ts +3 -18
- node v18.19/package.json +2 -2
node v18.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/v18.
|
|
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 v18.19/buffer.d.ts
CHANGED
|
@@ -1751,6 +1751,7 @@ declare module "buffer" {
|
|
|
1751
1751
|
* @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
|
1752
1752
|
*/
|
|
1753
1753
|
indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
1754
|
+
indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
|
1754
1755
|
/**
|
|
1755
1756
|
* Identical to `buf.indexOf()`, except the last occurrence of `value` is found
|
|
1756
1757
|
* rather than the first occurrence.
|
|
@@ -1819,6 +1820,7 @@ declare module "buffer" {
|
|
|
1819
1820
|
* @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
|
|
1820
1821
|
*/
|
|
1821
1822
|
lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
|
|
1823
|
+
lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
|
|
1822
1824
|
/**
|
|
1823
1825
|
* Equivalent to `buf.indexOf() !== -1`.
|
|
1824
1826
|
*
|
|
@@ -1849,6 +1851,7 @@ declare module "buffer" {
|
|
|
1849
1851
|
* @return `true` if `value` was found in `buf`, `false` otherwise.
|
|
1850
1852
|
*/
|
|
1851
1853
|
includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
|
|
1854
|
+
includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
|
|
1852
1855
|
}
|
|
1853
1856
|
var Buffer: BufferConstructor;
|
|
1854
1857
|
/**
|
node v18.19/http.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare module "http" {
|
|
|
44
44
|
import { URL } from "node:url";
|
|
45
45
|
import { EventEmitter } from "node:events";
|
|
46
46
|
import { LookupOptions } from "node:dns";
|
|
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;
|
|
@@ -1430,21 +1430,6 @@ declare module "http" {
|
|
|
1430
1430
|
*/
|
|
1431
1431
|
scheduling?: "fifo" | "lifo" | undefined;
|
|
1432
1432
|
}
|
|
1433
|
-
interface AgentGetNameOptions {
|
|
1434
|
-
/**
|
|
1435
|
-
* A domain name or IP address of the server to issue the request to
|
|
1436
|
-
*/
|
|
1437
|
-
host?: string | undefined;
|
|
1438
|
-
/**
|
|
1439
|
-
* Port of remote server
|
|
1440
|
-
*/
|
|
1441
|
-
port?: number | undefined;
|
|
1442
|
-
/**
|
|
1443
|
-
* Local interface to bind for network connections when issuing the request
|
|
1444
|
-
*/
|
|
1445
|
-
localAddress?: string | undefined;
|
|
1446
|
-
family?: 4 | 6 | undefined;
|
|
1447
|
-
}
|
|
1448
1433
|
/**
|
|
1449
1434
|
* An `Agent` is responsible for managing connection persistence
|
|
1450
1435
|
* and reuse for HTTP clients. It maintains a queue of pending requests
|
|
@@ -1572,7 +1557,7 @@ declare module "http" {
|
|
|
1572
1557
|
* @param callback Callback function that receives the created socket
|
|
1573
1558
|
*/
|
|
1574
1559
|
createConnection(
|
|
1575
|
-
options:
|
|
1560
|
+
options: ClientRequestArgs,
|
|
1576
1561
|
callback?: (err: Error | null, stream: stream.Duplex) => void,
|
|
1577
1562
|
): stream.Duplex;
|
|
1578
1563
|
/**
|
|
@@ -1614,7 +1599,7 @@ declare module "http" {
|
|
|
1614
1599
|
* @since v0.11.4
|
|
1615
1600
|
* @param options A set of options providing information for name generation
|
|
1616
1601
|
*/
|
|
1617
|
-
getName(options?:
|
|
1602
|
+
getName(options?: ClientRequestArgs): string;
|
|
1618
1603
|
}
|
|
1619
1604
|
const METHODS: string[];
|
|
1620
1605
|
const STATUS_CODES: {
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.118",
|
|
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": "~5.26.4"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "6f81bdf84df433512e1d28b8e3ad49577fbcc0480953c28f11354dbcddc3a663",
|
|
224
224
|
"typeScriptVersion": "5.1"
|
|
225
225
|
}
|