@types/node 18.18.9 → 18.18.11
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.18/README.md +1 -1
- node v18.18/assert.d.ts +2 -2
- node v18.18/buffer.d.ts +4 -4
- node v18.18/child_process.d.ts +33 -33
- node v18.18/console.d.ts +1 -1
- node v18.18/crypto.d.ts +4 -4
- node v18.18/dgram.d.ts +3 -3
- node v18.18/dns/promises.d.ts +9 -1
- node v18.18/dns.d.ts +1 -1
- node v18.18/fs/promises.d.ts +2 -2
- node v18.18/fs.d.ts +8 -8
- node v18.18/http.d.ts +2 -2
- node v18.18/http2.d.ts +9 -9
- node v18.18/package.json +2 -2
- node v18.18/perf_hooks.d.ts +1 -1
- node v18.18/punycode.d.ts +1 -1
- node v18.18/querystring.d.ts +3 -3
- node v18.18/tls.d.ts +1 -1
- node v18.18/ts4.8/assert.d.ts +2 -2
- node v18.18/ts4.8/buffer.d.ts +4 -4
- node v18.18/ts4.8/child_process.d.ts +33 -33
- node v18.18/ts4.8/console.d.ts +1 -1
- node v18.18/ts4.8/crypto.d.ts +4 -4
- node v18.18/ts4.8/dgram.d.ts +3 -3
- node v18.18/ts4.8/dns/promises.d.ts +9 -1
- node v18.18/ts4.8/dns.d.ts +1 -1
- node v18.18/ts4.8/fs/promises.d.ts +2 -2
- node v18.18/ts4.8/fs.d.ts +8 -8
- node v18.18/ts4.8/http.d.ts +2 -2
- node v18.18/ts4.8/http2.d.ts +9 -9
- node v18.18/ts4.8/perf_hooks.d.ts +1 -1
- node v18.18/ts4.8/punycode.d.ts +1 -1
- node v18.18/ts4.8/querystring.d.ts +3 -3
- node v18.18/ts4.8/tls.d.ts +1 -1
- node v18.18/ts4.8/url.d.ts +1 -1
- node v18.18/ts4.8/vm.d.ts +1 -1
- node v18.18/ts4.8/worker_threads.d.ts +2 -2
- node v18.18/url.d.ts +1 -1
- node v18.18/vm.d.ts +1 -1
- node v18.18/worker_threads.d.ts +2 -2
node v18.18/ts4.8/assert.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare module "assert" {
|
|
|
31
31
|
/** The `operator` property on the error instance. */
|
|
32
32
|
operator?: string | undefined;
|
|
33
33
|
/** If provided, the generated stack trace omits frames before this function. */
|
|
34
|
-
//
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
35
35
|
stackStartFn?: Function | undefined;
|
|
36
36
|
});
|
|
37
37
|
}
|
|
@@ -217,7 +217,7 @@ declare module "assert" {
|
|
|
217
217
|
expected: unknown,
|
|
218
218
|
message?: string | Error,
|
|
219
219
|
operator?: string,
|
|
220
|
-
//
|
|
220
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
221
221
|
stackStartFn?: Function,
|
|
222
222
|
): never;
|
|
223
223
|
/**
|
node v18.18/ts4.8/buffer.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ declare module "buffer" {
|
|
|
265
265
|
* @param array The octets to store.
|
|
266
266
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
267
267
|
*/
|
|
268
|
-
new(array:
|
|
268
|
+
new(array: readonly any[]): Buffer;
|
|
269
269
|
/**
|
|
270
270
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
271
271
|
*
|
|
@@ -299,8 +299,8 @@ declare module "buffer" {
|
|
|
299
299
|
* Creates a new Buffer using the passed {data}
|
|
300
300
|
* @param data data to create a new Buffer
|
|
301
301
|
*/
|
|
302
|
-
from(data: Uint8Array |
|
|
303
|
-
from(data: WithImplicitCoercion<Uint8Array |
|
|
302
|
+
from(data: Uint8Array | readonly number[]): Buffer;
|
|
303
|
+
from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
|
|
304
304
|
/**
|
|
305
305
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
306
306
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -428,7 +428,7 @@ declare module "buffer" {
|
|
|
428
428
|
* @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
|
|
429
429
|
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
|
430
430
|
*/
|
|
431
|
-
concat(list:
|
|
431
|
+
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
|
|
432
432
|
/**
|
|
433
433
|
* Copies the underlying memory of `view` into a new `Buffer`.
|
|
434
434
|
* @since v18.16.0
|
|
@@ -837,50 +837,50 @@ declare module "child_process" {
|
|
|
837
837
|
// overloads of spawn with 'args'
|
|
838
838
|
function spawn(
|
|
839
839
|
command: string,
|
|
840
|
-
args?:
|
|
840
|
+
args?: readonly string[],
|
|
841
841
|
options?: SpawnOptionsWithoutStdio,
|
|
842
842
|
): ChildProcessWithoutNullStreams;
|
|
843
843
|
function spawn(
|
|
844
844
|
command: string,
|
|
845
|
-
args:
|
|
845
|
+
args: readonly string[],
|
|
846
846
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
|
|
847
847
|
): ChildProcessByStdio<Writable, Readable, Readable>;
|
|
848
848
|
function spawn(
|
|
849
849
|
command: string,
|
|
850
|
-
args:
|
|
850
|
+
args: readonly string[],
|
|
851
851
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
|
|
852
852
|
): ChildProcessByStdio<Writable, Readable, null>;
|
|
853
853
|
function spawn(
|
|
854
854
|
command: string,
|
|
855
|
-
args:
|
|
855
|
+
args: readonly string[],
|
|
856
856
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
|
|
857
857
|
): ChildProcessByStdio<Writable, null, Readable>;
|
|
858
858
|
function spawn(
|
|
859
859
|
command: string,
|
|
860
|
-
args:
|
|
860
|
+
args: readonly string[],
|
|
861
861
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
|
|
862
862
|
): ChildProcessByStdio<null, Readable, Readable>;
|
|
863
863
|
function spawn(
|
|
864
864
|
command: string,
|
|
865
|
-
args:
|
|
865
|
+
args: readonly string[],
|
|
866
866
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
|
|
867
867
|
): ChildProcessByStdio<Writable, null, null>;
|
|
868
868
|
function spawn(
|
|
869
869
|
command: string,
|
|
870
|
-
args:
|
|
870
|
+
args: readonly string[],
|
|
871
871
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
|
|
872
872
|
): ChildProcessByStdio<null, Readable, null>;
|
|
873
873
|
function spawn(
|
|
874
874
|
command: string,
|
|
875
|
-
args:
|
|
875
|
+
args: readonly string[],
|
|
876
876
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
|
|
877
877
|
): ChildProcessByStdio<null, null, Readable>;
|
|
878
878
|
function spawn(
|
|
879
879
|
command: string,
|
|
880
|
-
args:
|
|
880
|
+
args: readonly string[],
|
|
881
881
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
|
|
882
882
|
): ChildProcessByStdio<null, null, null>;
|
|
883
|
-
function spawn(command: string, args:
|
|
883
|
+
function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess;
|
|
884
884
|
interface ExecOptions extends CommonOptions {
|
|
885
885
|
shell?: string | undefined;
|
|
886
886
|
signal?: AbortSignal | undefined;
|
|
@@ -1154,10 +1154,10 @@ declare module "child_process" {
|
|
|
1154
1154
|
file: string,
|
|
1155
1155
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1156
1156
|
): ChildProcess;
|
|
1157
|
-
function execFile(file: string, args?:
|
|
1157
|
+
function execFile(file: string, args?: readonly string[] | null): ChildProcess;
|
|
1158
1158
|
function execFile(
|
|
1159
1159
|
file: string,
|
|
1160
|
-
args:
|
|
1160
|
+
args: readonly string[] | undefined | null,
|
|
1161
1161
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1162
1162
|
): ChildProcess;
|
|
1163
1163
|
// no `options` definitely means stdout/stderr are `string`.
|
|
@@ -1167,7 +1167,7 @@ declare module "child_process" {
|
|
|
1167
1167
|
): ChildProcess;
|
|
1168
1168
|
function execFile(
|
|
1169
1169
|
file: string,
|
|
1170
|
-
args:
|
|
1170
|
+
args: readonly string[] | undefined | null,
|
|
1171
1171
|
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1172
1172
|
): ChildProcess;
|
|
1173
1173
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
@@ -1178,7 +1178,7 @@ declare module "child_process" {
|
|
|
1178
1178
|
): ChildProcess;
|
|
1179
1179
|
function execFile(
|
|
1180
1180
|
file: string,
|
|
1181
|
-
args:
|
|
1181
|
+
args: readonly string[] | undefined | null,
|
|
1182
1182
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1183
1183
|
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
1184
1184
|
): ChildProcess;
|
|
@@ -1190,7 +1190,7 @@ declare module "child_process" {
|
|
|
1190
1190
|
): ChildProcess;
|
|
1191
1191
|
function execFile(
|
|
1192
1192
|
file: string,
|
|
1193
|
-
args:
|
|
1193
|
+
args: readonly string[] | undefined | null,
|
|
1194
1194
|
options: ExecFileOptionsWithStringEncoding,
|
|
1195
1195
|
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1196
1196
|
): ChildProcess;
|
|
@@ -1203,7 +1203,7 @@ declare module "child_process" {
|
|
|
1203
1203
|
): ChildProcess;
|
|
1204
1204
|
function execFile(
|
|
1205
1205
|
file: string,
|
|
1206
|
-
args:
|
|
1206
|
+
args: readonly string[] | undefined | null,
|
|
1207
1207
|
options: ExecFileOptionsWithOtherEncoding,
|
|
1208
1208
|
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
1209
1209
|
): ChildProcess;
|
|
@@ -1215,7 +1215,7 @@ declare module "child_process" {
|
|
|
1215
1215
|
): ChildProcess;
|
|
1216
1216
|
function execFile(
|
|
1217
1217
|
file: string,
|
|
1218
|
-
args:
|
|
1218
|
+
args: readonly string[] | undefined | null,
|
|
1219
1219
|
options: ExecFileOptions,
|
|
1220
1220
|
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1221
1221
|
): ChildProcess;
|
|
@@ -1230,7 +1230,7 @@ declare module "child_process" {
|
|
|
1230
1230
|
): ChildProcess;
|
|
1231
1231
|
function execFile(
|
|
1232
1232
|
file: string,
|
|
1233
|
-
args:
|
|
1233
|
+
args: readonly string[] | undefined | null,
|
|
1234
1234
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1235
1235
|
callback:
|
|
1236
1236
|
| ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
|
|
@@ -1244,7 +1244,7 @@ declare module "child_process" {
|
|
|
1244
1244
|
}>;
|
|
1245
1245
|
function __promisify__(
|
|
1246
1246
|
file: string,
|
|
1247
|
-
args:
|
|
1247
|
+
args: readonly string[] | undefined | null,
|
|
1248
1248
|
): PromiseWithChild<{
|
|
1249
1249
|
stdout: string;
|
|
1250
1250
|
stderr: string;
|
|
@@ -1258,7 +1258,7 @@ declare module "child_process" {
|
|
|
1258
1258
|
}>;
|
|
1259
1259
|
function __promisify__(
|
|
1260
1260
|
file: string,
|
|
1261
|
-
args:
|
|
1261
|
+
args: readonly string[] | undefined | null,
|
|
1262
1262
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1263
1263
|
): PromiseWithChild<{
|
|
1264
1264
|
stdout: Buffer;
|
|
@@ -1273,7 +1273,7 @@ declare module "child_process" {
|
|
|
1273
1273
|
}>;
|
|
1274
1274
|
function __promisify__(
|
|
1275
1275
|
file: string,
|
|
1276
|
-
args:
|
|
1276
|
+
args: readonly string[] | undefined | null,
|
|
1277
1277
|
options: ExecFileOptionsWithStringEncoding,
|
|
1278
1278
|
): PromiseWithChild<{
|
|
1279
1279
|
stdout: string;
|
|
@@ -1288,7 +1288,7 @@ declare module "child_process" {
|
|
|
1288
1288
|
}>;
|
|
1289
1289
|
function __promisify__(
|
|
1290
1290
|
file: string,
|
|
1291
|
-
args:
|
|
1291
|
+
args: readonly string[] | undefined | null,
|
|
1292
1292
|
options: ExecFileOptionsWithOtherEncoding,
|
|
1293
1293
|
): PromiseWithChild<{
|
|
1294
1294
|
stdout: string | Buffer;
|
|
@@ -1303,7 +1303,7 @@ declare module "child_process" {
|
|
|
1303
1303
|
}>;
|
|
1304
1304
|
function __promisify__(
|
|
1305
1305
|
file: string,
|
|
1306
|
-
args:
|
|
1306
|
+
args: readonly string[] | undefined | null,
|
|
1307
1307
|
options: ExecFileOptions,
|
|
1308
1308
|
): PromiseWithChild<{
|
|
1309
1309
|
stdout: string;
|
|
@@ -1318,7 +1318,7 @@ declare module "child_process" {
|
|
|
1318
1318
|
}>;
|
|
1319
1319
|
function __promisify__(
|
|
1320
1320
|
file: string,
|
|
1321
|
-
args:
|
|
1321
|
+
args: readonly string[] | undefined | null,
|
|
1322
1322
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1323
1323
|
): PromiseWithChild<{
|
|
1324
1324
|
stdout: string | Buffer;
|
|
@@ -1392,7 +1392,7 @@ declare module "child_process" {
|
|
|
1392
1392
|
* @param args List of string arguments.
|
|
1393
1393
|
*/
|
|
1394
1394
|
function fork(modulePath: string, options?: ForkOptions): ChildProcess;
|
|
1395
|
-
function fork(modulePath: string, args?:
|
|
1395
|
+
function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess;
|
|
1396
1396
|
interface SpawnSyncOptions extends CommonSpawnOptions {
|
|
1397
1397
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1398
1398
|
maxBuffer?: number | undefined;
|
|
@@ -1432,20 +1432,20 @@ declare module "child_process" {
|
|
|
1432
1432
|
function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
1433
1433
|
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1434
1434
|
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1435
|
-
function spawnSync(command: string, args:
|
|
1435
|
+
function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
|
|
1436
1436
|
function spawnSync(
|
|
1437
1437
|
command: string,
|
|
1438
|
-
args:
|
|
1438
|
+
args: readonly string[],
|
|
1439
1439
|
options: SpawnSyncOptionsWithStringEncoding,
|
|
1440
1440
|
): SpawnSyncReturns<string>;
|
|
1441
1441
|
function spawnSync(
|
|
1442
1442
|
command: string,
|
|
1443
|
-
args:
|
|
1443
|
+
args: readonly string[],
|
|
1444
1444
|
options: SpawnSyncOptionsWithBufferEncoding,
|
|
1445
1445
|
): SpawnSyncReturns<Buffer>;
|
|
1446
1446
|
function spawnSync(
|
|
1447
1447
|
command: string,
|
|
1448
|
-
args?:
|
|
1448
|
+
args?: readonly string[],
|
|
1449
1449
|
options?: SpawnSyncOptions,
|
|
1450
1450
|
): SpawnSyncReturns<string | Buffer>;
|
|
1451
1451
|
interface CommonExecOptions extends CommonOptions {
|
|
@@ -1526,18 +1526,18 @@ declare module "child_process" {
|
|
|
1526
1526
|
function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
1527
1527
|
function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1528
1528
|
function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
1529
|
-
function execFileSync(file: string, args:
|
|
1529
|
+
function execFileSync(file: string, args: readonly string[]): Buffer;
|
|
1530
1530
|
function execFileSync(
|
|
1531
1531
|
file: string,
|
|
1532
|
-
args:
|
|
1532
|
+
args: readonly string[],
|
|
1533
1533
|
options: ExecFileSyncOptionsWithStringEncoding,
|
|
1534
1534
|
): string;
|
|
1535
1535
|
function execFileSync(
|
|
1536
1536
|
file: string,
|
|
1537
|
-
args:
|
|
1537
|
+
args: readonly string[],
|
|
1538
1538
|
options: ExecFileSyncOptionsWithBufferEncoding,
|
|
1539
1539
|
): Buffer;
|
|
1540
|
-
function execFileSync(file: string, args?:
|
|
1540
|
+
function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
|
|
1541
1541
|
}
|
|
1542
1542
|
declare module "node:child_process" {
|
|
1543
1543
|
export * from "child_process";
|
node v18.18/ts4.8/console.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ declare module "node:console" {
|
|
|
250
250
|
* @since v10.0.0
|
|
251
251
|
* @param properties Alternate properties for constructing the table.
|
|
252
252
|
*/
|
|
253
|
-
table(tabularData: any, properties?:
|
|
253
|
+
table(tabularData: any, properties?: readonly string[]): void;
|
|
254
254
|
/**
|
|
255
255
|
* Starts a timer that can be used to compute the duration of an operation. Timers
|
|
256
256
|
* are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in
|
node v18.18/ts4.8/crypto.d.ts
CHANGED
|
@@ -4202,7 +4202,7 @@ declare module "crypto" {
|
|
|
4202
4202
|
| HkdfParams
|
|
4203
4203
|
| Pbkdf2Params,
|
|
4204
4204
|
extractable: boolean,
|
|
4205
|
-
keyUsages:
|
|
4205
|
+
keyUsages: readonly KeyUsage[],
|
|
4206
4206
|
): Promise<CryptoKey>;
|
|
4207
4207
|
/**
|
|
4208
4208
|
* Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
|
|
@@ -4282,12 +4282,12 @@ declare module "crypto" {
|
|
|
4282
4282
|
generateKey(
|
|
4283
4283
|
algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
|
|
4284
4284
|
extractable: boolean,
|
|
4285
|
-
keyUsages:
|
|
4285
|
+
keyUsages: readonly KeyUsage[],
|
|
4286
4286
|
): Promise<CryptoKeyPair>;
|
|
4287
4287
|
generateKey(
|
|
4288
4288
|
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
|
|
4289
4289
|
extractable: boolean,
|
|
4290
|
-
keyUsages:
|
|
4290
|
+
keyUsages: readonly KeyUsage[],
|
|
4291
4291
|
): Promise<CryptoKey>;
|
|
4292
4292
|
generateKey(
|
|
4293
4293
|
algorithm: AlgorithmIdentifier,
|
|
@@ -4314,7 +4314,7 @@ declare module "crypto" {
|
|
|
4314
4314
|
| HmacImportParams
|
|
4315
4315
|
| AesKeyAlgorithm,
|
|
4316
4316
|
extractable: boolean,
|
|
4317
|
-
keyUsages:
|
|
4317
|
+
keyUsages: readonly KeyUsage[],
|
|
4318
4318
|
): Promise<CryptoKey>;
|
|
4319
4319
|
importKey(
|
|
4320
4320
|
format: Exclude<KeyFormat, "jwk">,
|
node v18.18/ts4.8/dgram.d.ts
CHANGED
|
@@ -342,18 +342,18 @@ declare module "dgram" {
|
|
|
342
342
|
* @param callback Called when the message has been sent.
|
|
343
343
|
*/
|
|
344
344
|
send(
|
|
345
|
-
msg: string | Uint8Array |
|
|
345
|
+
msg: string | Uint8Array | readonly any[],
|
|
346
346
|
port?: number,
|
|
347
347
|
address?: string,
|
|
348
348
|
callback?: (error: Error | null, bytes: number) => void,
|
|
349
349
|
): void;
|
|
350
350
|
send(
|
|
351
|
-
msg: string | Uint8Array |
|
|
351
|
+
msg: string | Uint8Array | readonly any[],
|
|
352
352
|
port?: number,
|
|
353
353
|
callback?: (error: Error | null, bytes: number) => void,
|
|
354
354
|
): void;
|
|
355
355
|
send(
|
|
356
|
-
msg: string | Uint8Array |
|
|
356
|
+
msg: string | Uint8Array | readonly any[],
|
|
357
357
|
callback?: (error: Error | null, bytes: number) => void,
|
|
358
358
|
): void;
|
|
359
359
|
send(
|
|
@@ -307,6 +307,14 @@ declare module "dns/promises" {
|
|
|
307
307
|
* @since v10.6.0
|
|
308
308
|
*/
|
|
309
309
|
function reverse(ip: string): Promise<string[]>;
|
|
310
|
+
/**
|
|
311
|
+
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
|
|
312
|
+
*
|
|
313
|
+
* * `ipv4first`: for `verbatim` defaulting to `false`.
|
|
314
|
+
* * `verbatim`: for `verbatim` defaulting to `true`.
|
|
315
|
+
* @since v18.17.0
|
|
316
|
+
*/
|
|
317
|
+
function getDefaultResultOrder(): "ipv4first" | "verbatim";
|
|
310
318
|
/**
|
|
311
319
|
* Sets the IP address and port of servers to be used when performing DNS
|
|
312
320
|
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
|
|
@@ -333,7 +341,7 @@ declare module "dns/promises" {
|
|
|
333
341
|
* @since v10.6.0
|
|
334
342
|
* @param servers array of `RFC 5952` formatted addresses
|
|
335
343
|
*/
|
|
336
|
-
function setServers(servers:
|
|
344
|
+
function setServers(servers: readonly string[]): void;
|
|
337
345
|
/**
|
|
338
346
|
* Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
|
|
339
347
|
*
|
node v18.18/ts4.8/dns.d.ts
CHANGED
|
@@ -661,7 +661,7 @@ declare module "dns" {
|
|
|
661
661
|
* @since v0.11.3
|
|
662
662
|
* @param servers array of `RFC 5952` formatted addresses
|
|
663
663
|
*/
|
|
664
|
-
export function setServers(servers:
|
|
664
|
+
export function setServers(servers: readonly string[]): void;
|
|
665
665
|
/**
|
|
666
666
|
* Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
|
|
667
667
|
* that are currently configured for DNS resolution. A string will include a port
|
|
@@ -442,14 +442,14 @@ declare module "fs/promises" {
|
|
|
442
442
|
* @param position The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current
|
|
443
443
|
* position.
|
|
444
444
|
*/
|
|
445
|
-
writev(buffers:
|
|
445
|
+
writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
|
|
446
446
|
/**
|
|
447
447
|
* Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
|
|
448
448
|
* @since v13.13.0, v12.17.0
|
|
449
449
|
* @param position The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position.
|
|
450
450
|
* @return Fulfills upon success an object containing two properties:
|
|
451
451
|
*/
|
|
452
|
-
readv(buffers:
|
|
452
|
+
readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
|
|
453
453
|
/**
|
|
454
454
|
* Closes the file handle after waiting for any pending operation on the handle to
|
|
455
455
|
* complete.
|
node v18.18/ts4.8/fs.d.ts
CHANGED
|
@@ -3991,12 +3991,12 @@ declare module "fs" {
|
|
|
3991
3991
|
*/
|
|
3992
3992
|
export function writev(
|
|
3993
3993
|
fd: number,
|
|
3994
|
-
buffers:
|
|
3994
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3995
3995
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3996
3996
|
): void;
|
|
3997
3997
|
export function writev(
|
|
3998
3998
|
fd: number,
|
|
3999
|
-
buffers:
|
|
3999
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4000
4000
|
position: number,
|
|
4001
4001
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4002
4002
|
): void;
|
|
@@ -4007,7 +4007,7 @@ declare module "fs" {
|
|
|
4007
4007
|
export namespace writev {
|
|
4008
4008
|
function __promisify__(
|
|
4009
4009
|
fd: number,
|
|
4010
|
-
buffers:
|
|
4010
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4011
4011
|
position?: number,
|
|
4012
4012
|
): Promise<WriteVResult>;
|
|
4013
4013
|
}
|
|
@@ -4017,7 +4017,7 @@ declare module "fs" {
|
|
|
4017
4017
|
* @since v12.9.0
|
|
4018
4018
|
* @return The number of bytes written.
|
|
4019
4019
|
*/
|
|
4020
|
-
export function writevSync(fd: number, buffers:
|
|
4020
|
+
export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
|
|
4021
4021
|
/**
|
|
4022
4022
|
* Read from a file specified by `fd` and write to an array of `ArrayBufferView`s
|
|
4023
4023
|
* using `readv()`.
|
|
@@ -4034,12 +4034,12 @@ declare module "fs" {
|
|
|
4034
4034
|
*/
|
|
4035
4035
|
export function readv(
|
|
4036
4036
|
fd: number,
|
|
4037
|
-
buffers:
|
|
4037
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4038
4038
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4039
4039
|
): void;
|
|
4040
4040
|
export function readv(
|
|
4041
4041
|
fd: number,
|
|
4042
|
-
buffers:
|
|
4042
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4043
4043
|
position: number,
|
|
4044
4044
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
4045
4045
|
): void;
|
|
@@ -4050,7 +4050,7 @@ declare module "fs" {
|
|
|
4050
4050
|
export namespace readv {
|
|
4051
4051
|
function __promisify__(
|
|
4052
4052
|
fd: number,
|
|
4053
|
-
buffers:
|
|
4053
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
4054
4054
|
position?: number,
|
|
4055
4055
|
): Promise<ReadVResult>;
|
|
4056
4056
|
}
|
|
@@ -4060,7 +4060,7 @@ declare module "fs" {
|
|
|
4060
4060
|
* @since v13.13.0, v12.17.0
|
|
4061
4061
|
* @return The number of bytes read.
|
|
4062
4062
|
*/
|
|
4063
|
-
export function readvSync(fd: number, buffers:
|
|
4063
|
+
export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
|
|
4064
4064
|
export interface OpenDirOptions {
|
|
4065
4065
|
encoding?: BufferEncoding | undefined;
|
|
4066
4066
|
/**
|
node v18.18/ts4.8/http.d.ts
CHANGED
|
@@ -584,7 +584,7 @@ declare module "http" {
|
|
|
584
584
|
* @param name Header name
|
|
585
585
|
* @param value Header value
|
|
586
586
|
*/
|
|
587
|
-
setHeader(name: string, value: number | string |
|
|
587
|
+
setHeader(name: string, value: number | string | readonly string[]): this;
|
|
588
588
|
/**
|
|
589
589
|
* Append a single header value for the header object.
|
|
590
590
|
*
|
|
@@ -598,7 +598,7 @@ declare module "http" {
|
|
|
598
598
|
* @param name Header name
|
|
599
599
|
* @param value Header value
|
|
600
600
|
*/
|
|
601
|
-
appendHeader(name: string, value: string |
|
|
601
|
+
appendHeader(name: string, value: string | readonly string[]): this;
|
|
602
602
|
/**
|
|
603
603
|
* Gets the value of HTTP header with the given name. If such a name doesn't
|
|
604
604
|
* exist in message, it will be `undefined`.
|
node v18.18/ts4.8/http2.d.ts
CHANGED
|
@@ -850,7 +850,7 @@ declare module "http2" {
|
|
|
850
850
|
): this;
|
|
851
851
|
addListener(
|
|
852
852
|
event: "goaway",
|
|
853
|
-
listener: (errorCode: number, lastStreamID: number, opaqueData
|
|
853
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void,
|
|
854
854
|
): this;
|
|
855
855
|
addListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
856
856
|
addListener(event: "ping", listener: () => void): this;
|
|
@@ -860,7 +860,7 @@ declare module "http2" {
|
|
|
860
860
|
emit(event: "close"): boolean;
|
|
861
861
|
emit(event: "error", err: Error): boolean;
|
|
862
862
|
emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean;
|
|
863
|
-
emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData
|
|
863
|
+
emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: Buffer): boolean;
|
|
864
864
|
emit(event: "localSettings", settings: Settings): boolean;
|
|
865
865
|
emit(event: "ping"): boolean;
|
|
866
866
|
emit(event: "remoteSettings", settings: Settings): boolean;
|
|
@@ -869,7 +869,7 @@ declare module "http2" {
|
|
|
869
869
|
on(event: "close", listener: () => void): this;
|
|
870
870
|
on(event: "error", listener: (err: Error) => void): this;
|
|
871
871
|
on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this;
|
|
872
|
-
on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData
|
|
872
|
+
on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this;
|
|
873
873
|
on(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
874
874
|
on(event: "ping", listener: () => void): this;
|
|
875
875
|
on(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
@@ -878,7 +878,7 @@ declare module "http2" {
|
|
|
878
878
|
once(event: "close", listener: () => void): this;
|
|
879
879
|
once(event: "error", listener: (err: Error) => void): this;
|
|
880
880
|
once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this;
|
|
881
|
-
once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData
|
|
881
|
+
once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this;
|
|
882
882
|
once(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
883
883
|
once(event: "ping", listener: () => void): this;
|
|
884
884
|
once(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
@@ -892,7 +892,7 @@ declare module "http2" {
|
|
|
892
892
|
): this;
|
|
893
893
|
prependListener(
|
|
894
894
|
event: "goaway",
|
|
895
|
-
listener: (errorCode: number, lastStreamID: number, opaqueData
|
|
895
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void,
|
|
896
896
|
): this;
|
|
897
897
|
prependListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
898
898
|
prependListener(event: "ping", listener: () => void): this;
|
|
@@ -907,7 +907,7 @@ declare module "http2" {
|
|
|
907
907
|
): this;
|
|
908
908
|
prependOnceListener(
|
|
909
909
|
event: "goaway",
|
|
910
|
-
listener: (errorCode: number, lastStreamID: number, opaqueData
|
|
910
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void,
|
|
911
911
|
): this;
|
|
912
912
|
prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
913
913
|
prependOnceListener(event: "ping", listener: () => void): this;
|
|
@@ -978,7 +978,7 @@ declare module "http2" {
|
|
|
978
978
|
): this;
|
|
979
979
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
980
980
|
emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
|
|
981
|
-
emit(event: "origin", origins:
|
|
981
|
+
emit(event: "origin", origins: readonly string[]): boolean;
|
|
982
982
|
emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
|
|
983
983
|
emit(
|
|
984
984
|
event: "stream",
|
|
@@ -1416,7 +1416,7 @@ declare module "http2" {
|
|
|
1416
1416
|
stream: ServerHttp2Stream,
|
|
1417
1417
|
headers: IncomingHttpHeaders,
|
|
1418
1418
|
options: stream.ReadableOptions,
|
|
1419
|
-
rawHeaders:
|
|
1419
|
+
rawHeaders: readonly string[],
|
|
1420
1420
|
);
|
|
1421
1421
|
/**
|
|
1422
1422
|
* The `request.aborted` property will be `true` if the request has
|
|
@@ -1857,7 +1857,7 @@ declare module "http2" {
|
|
|
1857
1857
|
* ```
|
|
1858
1858
|
* @since v8.4.0
|
|
1859
1859
|
*/
|
|
1860
|
-
setHeader(name: string, value: number | string |
|
|
1860
|
+
setHeader(name: string, value: number | string | readonly string[]): void;
|
|
1861
1861
|
/**
|
|
1862
1862
|
* Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
|
|
1863
1863
|
* provided, then it is added as a listener on the `'timeout'` event on
|
node v18.18/ts4.8/punycode.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ declare module "punycode" {
|
|
|
101
101
|
* Users currently depending on the punycode module should switch to using
|
|
102
102
|
* the userland-provided Punycode.js module instead.
|
|
103
103
|
*/
|
|
104
|
-
encode(codePoints:
|
|
104
|
+
encode(codePoints: readonly number[]): string;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* @deprecated since v7.0.0
|
node v18.18/ts4.8/tls.d.ts
CHANGED
|
@@ -1184,7 +1184,7 @@ declare module "tls" {
|
|
|
1184
1184
|
* format) used for verifying peer certificates. This is the default value
|
|
1185
1185
|
* of the ca option to tls.createSecureContext().
|
|
1186
1186
|
*/
|
|
1187
|
-
const rootCertificates:
|
|
1187
|
+
const rootCertificates: readonly string[];
|
|
1188
1188
|
}
|
|
1189
1189
|
declare module "node:tls" {
|
|
1190
1190
|
export * from "tls";
|
node v18.18/ts4.8/url.d.ts
CHANGED
node v18.18/ts4.8/vm.d.ts
CHANGED
|
@@ -489,7 +489,7 @@ declare module "vm" {
|
|
|
489
489
|
*/
|
|
490
490
|
function compileFunction(
|
|
491
491
|
code: string,
|
|
492
|
-
params?:
|
|
492
|
+
params?: readonly string[],
|
|
493
493
|
options?: CompileFunctionOptions,
|
|
494
494
|
): Function & {
|
|
495
495
|
cachedData?: Script["cachedData"] | undefined;
|