@types/node 16.18.62 → 16.18.64
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 v16.18/README.md +1 -1
- node v16.18/assert.d.ts +2 -2
- node v16.18/buffer.d.ts +4 -4
- node v16.18/child_process.d.ts +33 -33
- node v16.18/console.d.ts +1 -1
- node v16.18/crypto.d.ts +4 -4
- node v16.18/dgram.d.ts +3 -3
- node v16.18/dns/promises.d.ts +1 -1
- node v16.18/dns.d.ts +1 -1
- node v16.18/fs/promises.d.ts +2 -2
- node v16.18/fs.d.ts +8 -8
- node v16.18/http.d.ts +1 -1
- node v16.18/http2.d.ts +4 -3
- node v16.18/package.json +2 -2
- node v16.18/perf_hooks.d.ts +1 -1
- node v16.18/punycode.d.ts +1 -1
- node v16.18/querystring.d.ts +3 -3
- node v16.18/timers.d.ts +3 -3
- node v16.18/tls.d.ts +1 -1
- node v16.18/ts4.8/assert.d.ts +2 -2
- node v16.18/ts4.8/buffer.d.ts +4 -4
- node v16.18/ts4.8/child_process.d.ts +33 -33
- node v16.18/ts4.8/console.d.ts +1 -1
- node v16.18/ts4.8/crypto.d.ts +4 -4
- node v16.18/ts4.8/dgram.d.ts +3 -3
- node v16.18/ts4.8/dns/promises.d.ts +1 -1
- node v16.18/ts4.8/dns.d.ts +1 -1
- node v16.18/ts4.8/fs/promises.d.ts +2 -2
- node v16.18/ts4.8/fs.d.ts +8 -8
- node v16.18/ts4.8/http.d.ts +1 -1
- node v16.18/ts4.8/http2.d.ts +4 -3
- node v16.18/ts4.8/perf_hooks.d.ts +1 -1
- node v16.18/ts4.8/punycode.d.ts +1 -1
- node v16.18/ts4.8/querystring.d.ts +3 -3
- node v16.18/ts4.8/timers.d.ts +3 -3
- node v16.18/ts4.8/tls.d.ts +1 -1
- node v16.18/ts4.8/url.d.ts +1 -1
- node v16.18/ts4.8/vm.d.ts +1 -1
- node v16.18/ts4.8/worker_threads.d.ts +2 -2
- node v16.18/url.d.ts +1 -1
- node v16.18/vm.d.ts +1 -1
- node v16.18/worker_threads.d.ts +2 -2
node v16.18/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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v16.18/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 v16.18/buffer.d.ts
CHANGED
|
@@ -230,7 +230,7 @@ declare module "buffer" {
|
|
|
230
230
|
* @param array The octets to store.
|
|
231
231
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
232
232
|
*/
|
|
233
|
-
new(array:
|
|
233
|
+
new(array: readonly any[]): Buffer;
|
|
234
234
|
/**
|
|
235
235
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
236
236
|
*
|
|
@@ -264,8 +264,8 @@ declare module "buffer" {
|
|
|
264
264
|
* Creates a new Buffer using the passed {data}
|
|
265
265
|
* @param data data to create a new Buffer
|
|
266
266
|
*/
|
|
267
|
-
from(data: Uint8Array |
|
|
268
|
-
from(data: WithImplicitCoercion<Uint8Array |
|
|
267
|
+
from(data: Uint8Array | readonly number[]): Buffer;
|
|
268
|
+
from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
|
|
269
269
|
/**
|
|
270
270
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
271
271
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -393,7 +393,7 @@ declare module "buffer" {
|
|
|
393
393
|
* @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
|
|
394
394
|
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
|
395
395
|
*/
|
|
396
|
-
concat(list:
|
|
396
|
+
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
|
|
397
397
|
/**
|
|
398
398
|
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
|
|
399
399
|
*
|
node v16.18/child_process.d.ts
CHANGED
|
@@ -829,50 +829,50 @@ declare module "child_process" {
|
|
|
829
829
|
// overloads of spawn with 'args'
|
|
830
830
|
function spawn(
|
|
831
831
|
command: string,
|
|
832
|
-
args?:
|
|
832
|
+
args?: readonly string[],
|
|
833
833
|
options?: SpawnOptionsWithoutStdio,
|
|
834
834
|
): ChildProcessWithoutNullStreams;
|
|
835
835
|
function spawn(
|
|
836
836
|
command: string,
|
|
837
|
-
args:
|
|
837
|
+
args: readonly string[],
|
|
838
838
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
|
|
839
839
|
): ChildProcessByStdio<Writable, Readable, Readable>;
|
|
840
840
|
function spawn(
|
|
841
841
|
command: string,
|
|
842
|
-
args:
|
|
842
|
+
args: readonly string[],
|
|
843
843
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
|
|
844
844
|
): ChildProcessByStdio<Writable, Readable, null>;
|
|
845
845
|
function spawn(
|
|
846
846
|
command: string,
|
|
847
|
-
args:
|
|
847
|
+
args: readonly string[],
|
|
848
848
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
|
|
849
849
|
): ChildProcessByStdio<Writable, null, Readable>;
|
|
850
850
|
function spawn(
|
|
851
851
|
command: string,
|
|
852
|
-
args:
|
|
852
|
+
args: readonly string[],
|
|
853
853
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
|
|
854
854
|
): ChildProcessByStdio<null, Readable, Readable>;
|
|
855
855
|
function spawn(
|
|
856
856
|
command: string,
|
|
857
|
-
args:
|
|
857
|
+
args: readonly string[],
|
|
858
858
|
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
|
|
859
859
|
): ChildProcessByStdio<Writable, null, null>;
|
|
860
860
|
function spawn(
|
|
861
861
|
command: string,
|
|
862
|
-
args:
|
|
862
|
+
args: readonly string[],
|
|
863
863
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
|
|
864
864
|
): ChildProcessByStdio<null, Readable, null>;
|
|
865
865
|
function spawn(
|
|
866
866
|
command: string,
|
|
867
|
-
args:
|
|
867
|
+
args: readonly string[],
|
|
868
868
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
|
|
869
869
|
): ChildProcessByStdio<null, null, Readable>;
|
|
870
870
|
function spawn(
|
|
871
871
|
command: string,
|
|
872
|
-
args:
|
|
872
|
+
args: readonly string[],
|
|
873
873
|
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
|
|
874
874
|
): ChildProcessByStdio<null, null, null>;
|
|
875
|
-
function spawn(command: string, args:
|
|
875
|
+
function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess;
|
|
876
876
|
interface ExecOptions extends CommonOptions {
|
|
877
877
|
shell?: string | undefined;
|
|
878
878
|
signal?: AbortSignal | undefined;
|
|
@@ -1146,10 +1146,10 @@ declare module "child_process" {
|
|
|
1146
1146
|
file: string,
|
|
1147
1147
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1148
1148
|
): ChildProcess;
|
|
1149
|
-
function execFile(file: string, args?:
|
|
1149
|
+
function execFile(file: string, args?: readonly string[] | null): ChildProcess;
|
|
1150
1150
|
function execFile(
|
|
1151
1151
|
file: string,
|
|
1152
|
-
args:
|
|
1152
|
+
args: readonly string[] | undefined | null,
|
|
1153
1153
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1154
1154
|
): ChildProcess;
|
|
1155
1155
|
// no `options` definitely means stdout/stderr are `string`.
|
|
@@ -1159,7 +1159,7 @@ declare module "child_process" {
|
|
|
1159
1159
|
): ChildProcess;
|
|
1160
1160
|
function execFile(
|
|
1161
1161
|
file: string,
|
|
1162
|
-
args:
|
|
1162
|
+
args: readonly string[] | undefined | null,
|
|
1163
1163
|
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1164
1164
|
): ChildProcess;
|
|
1165
1165
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
@@ -1170,7 +1170,7 @@ declare module "child_process" {
|
|
|
1170
1170
|
): ChildProcess;
|
|
1171
1171
|
function execFile(
|
|
1172
1172
|
file: string,
|
|
1173
|
-
args:
|
|
1173
|
+
args: readonly string[] | undefined | null,
|
|
1174
1174
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1175
1175
|
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
1176
1176
|
): ChildProcess;
|
|
@@ -1182,7 +1182,7 @@ declare module "child_process" {
|
|
|
1182
1182
|
): ChildProcess;
|
|
1183
1183
|
function execFile(
|
|
1184
1184
|
file: string,
|
|
1185
|
-
args:
|
|
1185
|
+
args: readonly string[] | undefined | null,
|
|
1186
1186
|
options: ExecFileOptionsWithStringEncoding,
|
|
1187
1187
|
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1188
1188
|
): ChildProcess;
|
|
@@ -1195,7 +1195,7 @@ declare module "child_process" {
|
|
|
1195
1195
|
): ChildProcess;
|
|
1196
1196
|
function execFile(
|
|
1197
1197
|
file: string,
|
|
1198
|
-
args:
|
|
1198
|
+
args: readonly string[] | undefined | null,
|
|
1199
1199
|
options: ExecFileOptionsWithOtherEncoding,
|
|
1200
1200
|
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
1201
1201
|
): ChildProcess;
|
|
@@ -1207,7 +1207,7 @@ declare module "child_process" {
|
|
|
1207
1207
|
): ChildProcess;
|
|
1208
1208
|
function execFile(
|
|
1209
1209
|
file: string,
|
|
1210
|
-
args:
|
|
1210
|
+
args: readonly string[] | undefined | null,
|
|
1211
1211
|
options: ExecFileOptions,
|
|
1212
1212
|
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1213
1213
|
): ChildProcess;
|
|
@@ -1222,7 +1222,7 @@ declare module "child_process" {
|
|
|
1222
1222
|
): ChildProcess;
|
|
1223
1223
|
function execFile(
|
|
1224
1224
|
file: string,
|
|
1225
|
-
args:
|
|
1225
|
+
args: readonly string[] | undefined | null,
|
|
1226
1226
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1227
1227
|
callback:
|
|
1228
1228
|
| ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
|
|
@@ -1236,7 +1236,7 @@ declare module "child_process" {
|
|
|
1236
1236
|
}>;
|
|
1237
1237
|
function __promisify__(
|
|
1238
1238
|
file: string,
|
|
1239
|
-
args:
|
|
1239
|
+
args: readonly string[] | undefined | null,
|
|
1240
1240
|
): PromiseWithChild<{
|
|
1241
1241
|
stdout: string;
|
|
1242
1242
|
stderr: string;
|
|
@@ -1250,7 +1250,7 @@ declare module "child_process" {
|
|
|
1250
1250
|
}>;
|
|
1251
1251
|
function __promisify__(
|
|
1252
1252
|
file: string,
|
|
1253
|
-
args:
|
|
1253
|
+
args: readonly string[] | undefined | null,
|
|
1254
1254
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1255
1255
|
): PromiseWithChild<{
|
|
1256
1256
|
stdout: Buffer;
|
|
@@ -1265,7 +1265,7 @@ declare module "child_process" {
|
|
|
1265
1265
|
}>;
|
|
1266
1266
|
function __promisify__(
|
|
1267
1267
|
file: string,
|
|
1268
|
-
args:
|
|
1268
|
+
args: readonly string[] | undefined | null,
|
|
1269
1269
|
options: ExecFileOptionsWithStringEncoding,
|
|
1270
1270
|
): PromiseWithChild<{
|
|
1271
1271
|
stdout: string;
|
|
@@ -1280,7 +1280,7 @@ declare module "child_process" {
|
|
|
1280
1280
|
}>;
|
|
1281
1281
|
function __promisify__(
|
|
1282
1282
|
file: string,
|
|
1283
|
-
args:
|
|
1283
|
+
args: readonly string[] | undefined | null,
|
|
1284
1284
|
options: ExecFileOptionsWithOtherEncoding,
|
|
1285
1285
|
): PromiseWithChild<{
|
|
1286
1286
|
stdout: string | Buffer;
|
|
@@ -1295,7 +1295,7 @@ declare module "child_process" {
|
|
|
1295
1295
|
}>;
|
|
1296
1296
|
function __promisify__(
|
|
1297
1297
|
file: string,
|
|
1298
|
-
args:
|
|
1298
|
+
args: readonly string[] | undefined | null,
|
|
1299
1299
|
options: ExecFileOptions,
|
|
1300
1300
|
): PromiseWithChild<{
|
|
1301
1301
|
stdout: string;
|
|
@@ -1310,7 +1310,7 @@ declare module "child_process" {
|
|
|
1310
1310
|
}>;
|
|
1311
1311
|
function __promisify__(
|
|
1312
1312
|
file: string,
|
|
1313
|
-
args:
|
|
1313
|
+
args: readonly string[] | undefined | null,
|
|
1314
1314
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1315
1315
|
): PromiseWithChild<{
|
|
1316
1316
|
stdout: string | Buffer;
|
|
@@ -1384,7 +1384,7 @@ declare module "child_process" {
|
|
|
1384
1384
|
* @param args List of string arguments.
|
|
1385
1385
|
*/
|
|
1386
1386
|
function fork(modulePath: string, options?: ForkOptions): ChildProcess;
|
|
1387
|
-
function fork(modulePath: string, args?:
|
|
1387
|
+
function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess;
|
|
1388
1388
|
interface SpawnSyncOptions extends CommonSpawnOptions {
|
|
1389
1389
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1390
1390
|
maxBuffer?: number | undefined;
|
|
@@ -1424,20 +1424,20 @@ declare module "child_process" {
|
|
|
1424
1424
|
function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
1425
1425
|
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1426
1426
|
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1427
|
-
function spawnSync(command: string, args:
|
|
1427
|
+
function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
|
|
1428
1428
|
function spawnSync(
|
|
1429
1429
|
command: string,
|
|
1430
|
-
args:
|
|
1430
|
+
args: readonly string[],
|
|
1431
1431
|
options: SpawnSyncOptionsWithStringEncoding,
|
|
1432
1432
|
): SpawnSyncReturns<string>;
|
|
1433
1433
|
function spawnSync(
|
|
1434
1434
|
command: string,
|
|
1435
|
-
args:
|
|
1435
|
+
args: readonly string[],
|
|
1436
1436
|
options: SpawnSyncOptionsWithBufferEncoding,
|
|
1437
1437
|
): SpawnSyncReturns<Buffer>;
|
|
1438
1438
|
function spawnSync(
|
|
1439
1439
|
command: string,
|
|
1440
|
-
args?:
|
|
1440
|
+
args?: readonly string[],
|
|
1441
1441
|
options?: SpawnSyncOptions,
|
|
1442
1442
|
): SpawnSyncReturns<string | Buffer>;
|
|
1443
1443
|
interface CommonExecOptions extends CommonOptions {
|
|
@@ -1518,18 +1518,18 @@ declare module "child_process" {
|
|
|
1518
1518
|
function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
1519
1519
|
function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1520
1520
|
function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
1521
|
-
function execFileSync(file: string, args:
|
|
1521
|
+
function execFileSync(file: string, args: readonly string[]): Buffer;
|
|
1522
1522
|
function execFileSync(
|
|
1523
1523
|
file: string,
|
|
1524
|
-
args:
|
|
1524
|
+
args: readonly string[],
|
|
1525
1525
|
options: ExecFileSyncOptionsWithStringEncoding,
|
|
1526
1526
|
): string;
|
|
1527
1527
|
function execFileSync(
|
|
1528
1528
|
file: string,
|
|
1529
|
-
args:
|
|
1529
|
+
args: readonly string[],
|
|
1530
1530
|
options: ExecFileSyncOptionsWithBufferEncoding,
|
|
1531
1531
|
): Buffer;
|
|
1532
|
-
function execFileSync(file: string, args?:
|
|
1532
|
+
function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
|
|
1533
1533
|
}
|
|
1534
1534
|
declare module "node:child_process" {
|
|
1535
1535
|
export * from "child_process";
|
node v16.18/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 v16.18/crypto.d.ts
CHANGED
|
@@ -4104,7 +4104,7 @@ declare module "crypto" {
|
|
|
4104
4104
|
| HkdfParams
|
|
4105
4105
|
| Pbkdf2Params,
|
|
4106
4106
|
extractable: boolean,
|
|
4107
|
-
keyUsages:
|
|
4107
|
+
keyUsages: readonly KeyUsage[],
|
|
4108
4108
|
): Promise<CryptoKey>;
|
|
4109
4109
|
/**
|
|
4110
4110
|
* Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
|
|
@@ -4180,12 +4180,12 @@ declare module "crypto" {
|
|
|
4180
4180
|
generateKey(
|
|
4181
4181
|
algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
|
|
4182
4182
|
extractable: boolean,
|
|
4183
|
-
keyUsages:
|
|
4183
|
+
keyUsages: readonly KeyUsage[],
|
|
4184
4184
|
): Promise<CryptoKeyPair>;
|
|
4185
4185
|
generateKey(
|
|
4186
4186
|
algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
|
|
4187
4187
|
extractable: boolean,
|
|
4188
|
-
keyUsages:
|
|
4188
|
+
keyUsages: readonly KeyUsage[],
|
|
4189
4189
|
): Promise<CryptoKey>;
|
|
4190
4190
|
generateKey(
|
|
4191
4191
|
algorithm: AlgorithmIdentifier,
|
|
@@ -4212,7 +4212,7 @@ declare module "crypto" {
|
|
|
4212
4212
|
| HmacImportParams
|
|
4213
4213
|
| AesKeyAlgorithm,
|
|
4214
4214
|
extractable: boolean,
|
|
4215
|
-
keyUsages:
|
|
4215
|
+
keyUsages: readonly KeyUsage[],
|
|
4216
4216
|
): Promise<CryptoKey>;
|
|
4217
4217
|
importKey(
|
|
4218
4218
|
format: Exclude<KeyFormat, "jwk">,
|
node v16.18/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(
|
node v16.18/dns/promises.d.ts
CHANGED
|
@@ -333,7 +333,7 @@ declare module "dns/promises" {
|
|
|
333
333
|
* @since v10.6.0
|
|
334
334
|
* @param servers array of `RFC 5952` formatted addresses
|
|
335
335
|
*/
|
|
336
|
-
function setServers(servers:
|
|
336
|
+
function setServers(servers: readonly string[]): void;
|
|
337
337
|
/**
|
|
338
338
|
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
339
339
|
* - `ipv4first`: sets default `verbatim` `false`.
|
node v16.18/dns.d.ts
CHANGED
|
@@ -650,7 +650,7 @@ declare module "dns" {
|
|
|
650
650
|
* @since v0.11.3
|
|
651
651
|
* @param servers array of `RFC 5952` formatted addresses
|
|
652
652
|
*/
|
|
653
|
-
export function setServers(servers:
|
|
653
|
+
export function setServers(servers: readonly string[]): void;
|
|
654
654
|
/**
|
|
655
655
|
* Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
|
|
656
656
|
* that are currently configured for DNS resolution. A string will include a port
|
node v16.18/fs/promises.d.ts
CHANGED
|
@@ -391,14 +391,14 @@ declare module "fs/promises" {
|
|
|
391
391
|
* @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
|
|
392
392
|
* position.
|
|
393
393
|
*/
|
|
394
|
-
writev(buffers:
|
|
394
|
+
writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
|
|
395
395
|
/**
|
|
396
396
|
* Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
|
|
397
397
|
* @since v13.13.0, v12.17.0
|
|
398
398
|
* @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.
|
|
399
399
|
* @return Fulfills upon success an object containing two properties:
|
|
400
400
|
*/
|
|
401
|
-
readv(buffers:
|
|
401
|
+
readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
|
|
402
402
|
/**
|
|
403
403
|
* Closes the file handle after waiting for any pending operation on the handle to
|
|
404
404
|
* complete.
|
node v16.18/fs.d.ts
CHANGED
|
@@ -3799,12 +3799,12 @@ declare module "fs" {
|
|
|
3799
3799
|
*/
|
|
3800
3800
|
export function writev(
|
|
3801
3801
|
fd: number,
|
|
3802
|
-
buffers:
|
|
3802
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3803
3803
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3804
3804
|
): void;
|
|
3805
3805
|
export function writev(
|
|
3806
3806
|
fd: number,
|
|
3807
|
-
buffers:
|
|
3807
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3808
3808
|
position: number,
|
|
3809
3809
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3810
3810
|
): void;
|
|
@@ -3815,7 +3815,7 @@ declare module "fs" {
|
|
|
3815
3815
|
export namespace writev {
|
|
3816
3816
|
function __promisify__(
|
|
3817
3817
|
fd: number,
|
|
3818
|
-
buffers:
|
|
3818
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3819
3819
|
position?: number,
|
|
3820
3820
|
): Promise<WriteVResult>;
|
|
3821
3821
|
}
|
|
@@ -3825,7 +3825,7 @@ declare module "fs" {
|
|
|
3825
3825
|
* @since v12.9.0
|
|
3826
3826
|
* @return The number of bytes written.
|
|
3827
3827
|
*/
|
|
3828
|
-
export function writevSync(fd: number, buffers:
|
|
3828
|
+
export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
|
|
3829
3829
|
/**
|
|
3830
3830
|
* Read from a file specified by `fd` and write to an array of `ArrayBufferView`s
|
|
3831
3831
|
* using `readv()`.
|
|
@@ -3842,12 +3842,12 @@ declare module "fs" {
|
|
|
3842
3842
|
*/
|
|
3843
3843
|
export function readv(
|
|
3844
3844
|
fd: number,
|
|
3845
|
-
buffers:
|
|
3845
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3846
3846
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3847
3847
|
): void;
|
|
3848
3848
|
export function readv(
|
|
3849
3849
|
fd: number,
|
|
3850
|
-
buffers:
|
|
3850
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3851
3851
|
position: number,
|
|
3852
3852
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
|
|
3853
3853
|
): void;
|
|
@@ -3858,7 +3858,7 @@ declare module "fs" {
|
|
|
3858
3858
|
export namespace readv {
|
|
3859
3859
|
function __promisify__(
|
|
3860
3860
|
fd: number,
|
|
3861
|
-
buffers:
|
|
3861
|
+
buffers: readonly NodeJS.ArrayBufferView[],
|
|
3862
3862
|
position?: number,
|
|
3863
3863
|
): Promise<ReadVResult>;
|
|
3864
3864
|
}
|
|
@@ -3868,7 +3868,7 @@ declare module "fs" {
|
|
|
3868
3868
|
* @since v13.13.0, v12.17.0
|
|
3869
3869
|
* @return The number of bytes read.
|
|
3870
3870
|
*/
|
|
3871
|
-
export function readvSync(fd: number, buffers:
|
|
3871
|
+
export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
|
|
3872
3872
|
export interface OpenDirOptions {
|
|
3873
3873
|
encoding?: BufferEncoding | undefined;
|
|
3874
3874
|
/**
|
node v16.18/http.d.ts
CHANGED
|
@@ -512,7 +512,7 @@ declare module "http" {
|
|
|
512
512
|
* @param name Header name
|
|
513
513
|
* @param value Header value
|
|
514
514
|
*/
|
|
515
|
-
setHeader(name: string, value: number | string |
|
|
515
|
+
setHeader(name: string, value: number | string | readonly string[]): this;
|
|
516
516
|
/**
|
|
517
517
|
* Gets the value of HTTP header with the given name. If such a name doesn't
|
|
518
518
|
* exist in message, it will be `undefined`.
|
node v16.18/http2.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ declare module "http2" {
|
|
|
55
55
|
length: number;
|
|
56
56
|
}
|
|
57
57
|
export interface ServerStreamFileResponseOptions {
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
58
59
|
statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean;
|
|
59
60
|
waitForTrailers?: boolean | undefined;
|
|
60
61
|
offset?: number | undefined;
|
|
@@ -973,7 +974,7 @@ declare module "http2" {
|
|
|
973
974
|
): this;
|
|
974
975
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
975
976
|
emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
|
|
976
|
-
emit(event: "origin", origins:
|
|
977
|
+
emit(event: "origin", origins: readonly string[]): boolean;
|
|
977
978
|
emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
|
|
978
979
|
emit(
|
|
979
980
|
event: "stream",
|
|
@@ -1411,7 +1412,7 @@ declare module "http2" {
|
|
|
1411
1412
|
stream: ServerHttp2Stream,
|
|
1412
1413
|
headers: IncomingHttpHeaders,
|
|
1413
1414
|
options: stream.ReadableOptions,
|
|
1414
|
-
rawHeaders:
|
|
1415
|
+
rawHeaders: readonly string[],
|
|
1415
1416
|
);
|
|
1416
1417
|
/**
|
|
1417
1418
|
* The `request.aborted` property will be `true` if the request has
|
|
@@ -1852,7 +1853,7 @@ declare module "http2" {
|
|
|
1852
1853
|
* ```
|
|
1853
1854
|
* @since v8.4.0
|
|
1854
1855
|
*/
|
|
1855
|
-
setHeader(name: string, value: number | string |
|
|
1856
|
+
setHeader(name: string, value: number | string | readonly string[]): void;
|
|
1856
1857
|
/**
|
|
1857
1858
|
* Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
|
|
1858
1859
|
* provided, then it is added as a listener on the `'timeout'` event on
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.64",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
},
|
|
223
223
|
"scripts": {},
|
|
224
224
|
"dependencies": {},
|
|
225
|
-
"typesPublisherContentHash": "
|
|
225
|
+
"typesPublisherContentHash": "20cc173f0fdd6acc432693776c645e9aa35284584348ef03ce4520865fb12f95",
|
|
226
226
|
"typeScriptVersion": "4.5",
|
|
227
227
|
"nonNpm": true
|
|
228
228
|
}
|
node v16.18/perf_hooks.d.ts
CHANGED
node v16.18/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 v16.18/querystring.d.ts
CHANGED
node v16.18/timers.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ declare module "timers" {
|
|
|
72
72
|
...args: TArgs
|
|
73
73
|
): NodeJS.Timeout;
|
|
74
74
|
// util.promisify no rest args compability
|
|
75
|
-
//
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
76
76
|
function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
|
|
77
77
|
namespace setTimeout {
|
|
78
78
|
const __promisify__: typeof setTimeoutPromise;
|
|
@@ -84,7 +84,7 @@ declare module "timers" {
|
|
|
84
84
|
...args: TArgs
|
|
85
85
|
): NodeJS.Timer;
|
|
86
86
|
// util.promisify no rest args compability
|
|
87
|
-
//
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
88
88
|
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timer;
|
|
89
89
|
namespace setInterval {
|
|
90
90
|
const __promisify__: typeof setIntervalPromise;
|
|
@@ -95,7 +95,7 @@ declare module "timers" {
|
|
|
95
95
|
...args: TArgs
|
|
96
96
|
): NodeJS.Immediate;
|
|
97
97
|
// util.promisify no rest args compability
|
|
98
|
-
//
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
99
99
|
function setImmediate(callback: (args: void) => void): NodeJS.Immediate;
|
|
100
100
|
namespace setImmediate {
|
|
101
101
|
const __promisify__: typeof setImmediatePromise;
|
node v16.18/tls.d.ts
CHANGED
|
@@ -1091,7 +1091,7 @@ declare module "tls" {
|
|
|
1091
1091
|
* format) used for verifying peer certificates. This is the default value
|
|
1092
1092
|
* of the ca option to tls.createSecureContext().
|
|
1093
1093
|
*/
|
|
1094
|
-
const rootCertificates:
|
|
1094
|
+
const rootCertificates: readonly string[];
|
|
1095
1095
|
}
|
|
1096
1096
|
declare module "node:tls" {
|
|
1097
1097
|
export * from "tls";
|
node v16.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 v16.18/ts4.8/buffer.d.ts
CHANGED
|
@@ -230,7 +230,7 @@ declare module "buffer" {
|
|
|
230
230
|
* @param array The octets to store.
|
|
231
231
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
232
232
|
*/
|
|
233
|
-
new(array:
|
|
233
|
+
new(array: readonly any[]): Buffer;
|
|
234
234
|
/**
|
|
235
235
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
236
236
|
*
|
|
@@ -264,8 +264,8 @@ declare module "buffer" {
|
|
|
264
264
|
* Creates a new Buffer using the passed {data}
|
|
265
265
|
* @param data data to create a new Buffer
|
|
266
266
|
*/
|
|
267
|
-
from(data: Uint8Array |
|
|
268
|
-
from(data: WithImplicitCoercion<Uint8Array |
|
|
267
|
+
from(data: Uint8Array | readonly number[]): Buffer;
|
|
268
|
+
from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
|
|
269
269
|
/**
|
|
270
270
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
271
271
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -393,7 +393,7 @@ declare module "buffer" {
|
|
|
393
393
|
* @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
|
|
394
394
|
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
|
395
395
|
*/
|
|
396
|
-
concat(list:
|
|
396
|
+
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
|
|
397
397
|
/**
|
|
398
398
|
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
|
|
399
399
|
*
|