@types/node 16.18.62 → 16.18.63

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 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: Sat, 18 Nov 2023 20:07:14 GMT
11
+ * Last updated: Mon, 20 Nov 2023 23:36:24 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
- // tslint:disable-next-line:ban-types
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
- // tslint:disable-next-line:ban-types
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: ReadonlyArray<any>): Buffer;
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 | ReadonlyArray<number>): Buffer;
268
- from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
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: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
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
  *
@@ -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?: ReadonlyArray<string>,
832
+ args?: readonly string[],
833
833
  options?: SpawnOptionsWithoutStdio,
834
834
  ): ChildProcessWithoutNullStreams;
835
835
  function spawn(
836
836
  command: string,
837
- args: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
872
+ args: readonly string[],
873
873
  options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
874
874
  ): ChildProcessByStdio<null, null, null>;
875
- function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
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?: ReadonlyArray<string> | null): ChildProcess;
1149
+ function execFile(file: string, args?: readonly string[] | null): ChildProcess;
1150
1150
  function execFile(
1151
1151
  file: string,
1152
- args: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
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: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
1427
+ function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
1428
1428
  function spawnSync(
1429
1429
  command: string,
1430
- args: ReadonlyArray<string>,
1430
+ args: readonly string[],
1431
1431
  options: SpawnSyncOptionsWithStringEncoding,
1432
1432
  ): SpawnSyncReturns<string>;
1433
1433
  function spawnSync(
1434
1434
  command: string,
1435
- args: ReadonlyArray<string>,
1435
+ args: readonly string[],
1436
1436
  options: SpawnSyncOptionsWithBufferEncoding,
1437
1437
  ): SpawnSyncReturns<Buffer>;
1438
1438
  function spawnSync(
1439
1439
  command: string,
1440
- args?: ReadonlyArray<string>,
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: ReadonlyArray<string>): Buffer;
1521
+ function execFileSync(file: string, args: readonly string[]): Buffer;
1522
1522
  function execFileSync(
1523
1523
  file: string,
1524
- args: ReadonlyArray<string>,
1524
+ args: readonly string[],
1525
1525
  options: ExecFileSyncOptionsWithStringEncoding,
1526
1526
  ): string;
1527
1527
  function execFileSync(
1528
1528
  file: string,
1529
- args: ReadonlyArray<string>,
1529
+ args: readonly string[],
1530
1530
  options: ExecFileSyncOptionsWithBufferEncoding,
1531
1531
  ): Buffer;
1532
- function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
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";
@@ -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?: ReadonlyArray<string>): void;
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: ReadonlyArray<KeyUsage>,
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: ReadonlyArray<KeyUsage>,
4183
+ keyUsages: readonly KeyUsage[],
4184
4184
  ): Promise<CryptoKeyPair>;
4185
4185
  generateKey(
4186
4186
  algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
4187
4187
  extractable: boolean,
4188
- keyUsages: ReadonlyArray<KeyUsage>,
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: ReadonlyArray<KeyUsage>,
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 | ReadonlyArray<any>,
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 | ReadonlyArray<any>,
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 | ReadonlyArray<any>,
356
+ msg: string | Uint8Array | readonly any[],
357
357
  callback?: (error: Error | null, bytes: number) => void,
358
358
  ): void;
359
359
  send(
@@ -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: ReadonlyArray<string>): void;
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: ReadonlyArray<string>): void;
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
@@ -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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
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 | ReadonlyArray<string>): this;
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
@@ -973,7 +973,7 @@ declare module "http2" {
973
973
  ): this;
974
974
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
975
975
  emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
976
- emit(event: "origin", origins: ReadonlyArray<string>): boolean;
976
+ emit(event: "origin", origins: readonly string[]): boolean;
977
977
  emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
978
978
  emit(
979
979
  event: "stream",
@@ -1411,7 +1411,7 @@ declare module "http2" {
1411
1411
  stream: ServerHttp2Stream,
1412
1412
  headers: IncomingHttpHeaders,
1413
1413
  options: stream.ReadableOptions,
1414
- rawHeaders: ReadonlyArray<string>,
1414
+ rawHeaders: readonly string[],
1415
1415
  );
1416
1416
  /**
1417
1417
  * The `request.aborted` property will be `true` if the request has
@@ -1852,7 +1852,7 @@ declare module "http2" {
1852
1852
  * ```
1853
1853
  * @since v8.4.0
1854
1854
  */
1855
- setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
1855
+ setHeader(name: string, value: number | string | readonly string[]): void;
1856
1856
  /**
1857
1857
  * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
1858
1858
  * provided, then it is added as a listener on the `'timeout'` event on
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.62",
3
+ "version": "16.18.63",
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": "ea0299e72697730580732aba48276a3d31e362d8100bf0d84d174077d3dbb7fd",
225
+ "typesPublisherContentHash": "81d4bb5a6e641efb4755b8d064dc9b8ccdf04ecd9b91decfcffd7dbac2d01e51",
226
226
  "typeScriptVersion": "4.5",
227
227
  "nonNpm": true
228
228
  }
@@ -428,7 +428,7 @@ declare module "perf_hooks" {
428
428
  observe(
429
429
  options:
430
430
  | {
431
- entryTypes: ReadonlyArray<EntryType>;
431
+ entryTypes: readonly EntryType[];
432
432
  buffered?: boolean | undefined;
433
433
  }
434
434
  | {
@@ -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: ReadonlyArray<number>): string;
104
+ encode(codePoints: readonly number[]): string;
105
105
  }
106
106
  /**
107
107
  * @deprecated since v7.0.0
@@ -25,9 +25,9 @@ declare module "querystring" {
25
25
  | string
26
26
  | number
27
27
  | boolean
28
- | ReadonlyArray<string>
29
- | ReadonlyArray<number>
30
- | ReadonlyArray<boolean>
28
+ | readonly string[]
29
+ | readonly number[]
30
+ | readonly boolean[]
31
31
  | null
32
32
  >
33
33
  {}
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: ReadonlyArray<string>;
1094
+ const rootCertificates: readonly string[];
1095
1095
  }
1096
1096
  declare module "node:tls" {
1097
1097
  export * from "tls";
@@ -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
- // tslint:disable-next-line:ban-types
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
- // tslint:disable-next-line:ban-types
220
+ // eslint-disable-next-line @typescript-eslint/ban-types
221
221
  stackStartFn?: Function,
222
222
  ): never;
223
223
  /**
@@ -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: ReadonlyArray<any>): Buffer;
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 | ReadonlyArray<number>): Buffer;
268
- from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
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: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
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
  *
@@ -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?: ReadonlyArray<string>,
832
+ args?: readonly string[],
833
833
  options?: SpawnOptionsWithoutStdio,
834
834
  ): ChildProcessWithoutNullStreams;
835
835
  function spawn(
836
836
  command: string,
837
- args: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
872
+ args: readonly string[],
873
873
  options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
874
874
  ): ChildProcessByStdio<null, null, null>;
875
- function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
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?: ReadonlyArray<string> | null): ChildProcess;
1149
+ function execFile(file: string, args?: readonly string[] | null): ChildProcess;
1150
1150
  function execFile(
1151
1151
  file: string,
1152
- args: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
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: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
1427
+ function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
1428
1428
  function spawnSync(
1429
1429
  command: string,
1430
- args: ReadonlyArray<string>,
1430
+ args: readonly string[],
1431
1431
  options: SpawnSyncOptionsWithStringEncoding,
1432
1432
  ): SpawnSyncReturns<string>;
1433
1433
  function spawnSync(
1434
1434
  command: string,
1435
- args: ReadonlyArray<string>,
1435
+ args: readonly string[],
1436
1436
  options: SpawnSyncOptionsWithBufferEncoding,
1437
1437
  ): SpawnSyncReturns<Buffer>;
1438
1438
  function spawnSync(
1439
1439
  command: string,
1440
- args?: ReadonlyArray<string>,
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: ReadonlyArray<string>): Buffer;
1521
+ function execFileSync(file: string, args: readonly string[]): Buffer;
1522
1522
  function execFileSync(
1523
1523
  file: string,
1524
- args: ReadonlyArray<string>,
1524
+ args: readonly string[],
1525
1525
  options: ExecFileSyncOptionsWithStringEncoding,
1526
1526
  ): string;
1527
1527
  function execFileSync(
1528
1528
  file: string,
1529
- args: ReadonlyArray<string>,
1529
+ args: readonly string[],
1530
1530
  options: ExecFileSyncOptionsWithBufferEncoding,
1531
1531
  ): Buffer;
1532
- function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
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";
@@ -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?: ReadonlyArray<string>): void;
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
@@ -4101,7 +4101,7 @@ declare module "crypto" {
4101
4101
  | HkdfParams
4102
4102
  | Pbkdf2Params,
4103
4103
  extractable: boolean,
4104
- keyUsages: ReadonlyArray<KeyUsage>,
4104
+ keyUsages: readonly KeyUsage[],
4105
4105
  ): Promise<CryptoKey>;
4106
4106
  /**
4107
4107
  * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
@@ -4177,12 +4177,12 @@ declare module "crypto" {
4177
4177
  generateKey(
4178
4178
  algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
4179
4179
  extractable: boolean,
4180
- keyUsages: ReadonlyArray<KeyUsage>,
4180
+ keyUsages: readonly KeyUsage[],
4181
4181
  ): Promise<CryptoKeyPair>;
4182
4182
  generateKey(
4183
4183
  algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
4184
4184
  extractable: boolean,
4185
- keyUsages: ReadonlyArray<KeyUsage>,
4185
+ keyUsages: readonly KeyUsage[],
4186
4186
  ): Promise<CryptoKey>;
4187
4187
  generateKey(
4188
4188
  algorithm: AlgorithmIdentifier,
@@ -4209,7 +4209,7 @@ declare module "crypto" {
4209
4209
  | HmacImportParams
4210
4210
  | AesKeyAlgorithm,
4211
4211
  extractable: boolean,
4212
- keyUsages: ReadonlyArray<KeyUsage>,
4212
+ keyUsages: readonly KeyUsage[],
4213
4213
  ): Promise<CryptoKey>;
4214
4214
  importKey(
4215
4215
  format: Exclude<KeyFormat, "jwk">,
@@ -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 | ReadonlyArray<any>,
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 | ReadonlyArray<any>,
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 | ReadonlyArray<any>,
356
+ msg: string | Uint8Array | readonly any[],
357
357
  callback?: (error: Error | null, bytes: number) => void,
358
358
  ): void;
359
359
  send(
@@ -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: ReadonlyArray<string>): void;
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`.
@@ -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: ReadonlyArray<string>): void;
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
@@ -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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
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.
@@ -3799,12 +3799,12 @@ declare module "fs" {
3799
3799
  */
3800
3800
  export function writev(
3801
3801
  fd: number,
3802
- buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
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
  /**
@@ -511,7 +511,7 @@ declare module "http" {
511
511
  * @param name Header name
512
512
  * @param value Header value
513
513
  */
514
- setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
514
+ setHeader(name: string, value: number | string | readonly string[]): this;
515
515
  /**
516
516
  * Gets the value of HTTP header with the given name. If such a name doesn't
517
517
  * exist in message, it will be `undefined`.
@@ -973,7 +973,7 @@ declare module "http2" {
973
973
  ): this;
974
974
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
975
975
  emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
976
- emit(event: "origin", origins: ReadonlyArray<string>): boolean;
976
+ emit(event: "origin", origins: readonly string[]): boolean;
977
977
  emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
978
978
  emit(
979
979
  event: "stream",
@@ -1411,7 +1411,7 @@ declare module "http2" {
1411
1411
  stream: ServerHttp2Stream,
1412
1412
  headers: IncomingHttpHeaders,
1413
1413
  options: stream.ReadableOptions,
1414
- rawHeaders: ReadonlyArray<string>,
1414
+ rawHeaders: readonly string[],
1415
1415
  );
1416
1416
  /**
1417
1417
  * The `request.aborted` property will be `true` if the request has
@@ -1852,7 +1852,7 @@ declare module "http2" {
1852
1852
  * ```
1853
1853
  * @since v8.4.0
1854
1854
  */
1855
- setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
1855
+ setHeader(name: string, value: number | string | readonly string[]): void;
1856
1856
  /**
1857
1857
  * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
1858
1858
  * provided, then it is added as a listener on the `'timeout'` event on
@@ -428,7 +428,7 @@ declare module "perf_hooks" {
428
428
  observe(
429
429
  options:
430
430
  | {
431
- entryTypes: ReadonlyArray<EntryType>;
431
+ entryTypes: readonly EntryType[];
432
432
  buffered?: boolean | undefined;
433
433
  }
434
434
  | {
@@ -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: ReadonlyArray<number>): string;
104
+ encode(codePoints: readonly number[]): string;
105
105
  }
106
106
  /**
107
107
  * @deprecated since v7.0.0
@@ -25,9 +25,9 @@ declare module "querystring" {
25
25
  | string
26
26
  | number
27
27
  | boolean
28
- | ReadonlyArray<string>
29
- | ReadonlyArray<number>
30
- | ReadonlyArray<boolean>
28
+ | readonly string[]
29
+ | readonly number[]
30
+ | readonly boolean[]
31
31
  | null
32
32
  >
33
33
  {}
@@ -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: ReadonlyArray<string>;
1094
+ const rootCertificates: readonly string[];
1095
1095
  }
1096
1096
  declare module "node:tls" {
1097
1097
  export * from "tls";
@@ -719,7 +719,7 @@ declare module "url" {
719
719
  init?:
720
720
  | URLSearchParams
721
721
  | string
722
- | Record<string, string | ReadonlyArray<string>>
722
+ | Record<string, string | readonly string[]>
723
723
  | Iterable<[string, string]>
724
724
  | ReadonlyArray<[string, string]>,
725
725
  );
@@ -444,7 +444,7 @@ declare module "vm" {
444
444
  * @param code The body of the function to compile.
445
445
  * @param params An array of strings containing all parameters for the function.
446
446
  */
447
- function compileFunction(code: string, params?: ReadonlyArray<string>, options?: CompileFunctionOptions): Function;
447
+ function compileFunction(code: string, params?: readonly string[], options?: CompileFunctionOptions): Function;
448
448
  /**
449
449
  * Measure the memory known to V8 and used by all contexts known to the
450
450
  * current V8 isolate, or the main context.
@@ -173,7 +173,7 @@ declare module "worker_threads" {
173
173
  * behind this API, see the `serialization API of the v8 module`.
174
174
  * @since v10.5.0
175
175
  */
176
- postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
176
+ postMessage(value: any, transferList?: readonly TransferListItem[]): void;
177
177
  /**
178
178
  * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does_not_ let the program exit if it's the only active handle left (the default
179
179
  * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
@@ -398,7 +398,7 @@ declare module "worker_threads" {
398
398
  * See `port.postMessage()` for more details.
399
399
  * @since v10.5.0
400
400
  */
401
- postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
401
+ postMessage(value: any, transferList?: readonly TransferListItem[]): void;
402
402
  /**
403
403
  * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does_not_ let the program exit if it's the only active handle left (the default
404
404
  * behavior). If the worker is `ref()`ed, calling `ref()` again has
node v16.18/url.d.ts CHANGED
@@ -719,7 +719,7 @@ declare module "url" {
719
719
  init?:
720
720
  | URLSearchParams
721
721
  | string
722
- | Record<string, string | ReadonlyArray<string>>
722
+ | Record<string, string | readonly string[]>
723
723
  | Iterable<[string, string]>
724
724
  | ReadonlyArray<[string, string]>,
725
725
  );
node v16.18/vm.d.ts CHANGED
@@ -444,7 +444,7 @@ declare module "vm" {
444
444
  * @param code The body of the function to compile.
445
445
  * @param params An array of strings containing all parameters for the function.
446
446
  */
447
- function compileFunction(code: string, params?: ReadonlyArray<string>, options?: CompileFunctionOptions): Function;
447
+ function compileFunction(code: string, params?: readonly string[], options?: CompileFunctionOptions): Function;
448
448
  /**
449
449
  * Measure the memory known to V8 and used by all contexts known to the
450
450
  * current V8 isolate, or the main context.
@@ -173,7 +173,7 @@ declare module "worker_threads" {
173
173
  * behind this API, see the `serialization API of the v8 module`.
174
174
  * @since v10.5.0
175
175
  */
176
- postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
176
+ postMessage(value: any, transferList?: readonly TransferListItem[]): void;
177
177
  /**
178
178
  * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does_not_ let the program exit if it's the only active handle left (the default
179
179
  * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
@@ -398,7 +398,7 @@ declare module "worker_threads" {
398
398
  * See `port.postMessage()` for more details.
399
399
  * @since v10.5.0
400
400
  */
401
- postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
401
+ postMessage(value: any, transferList?: readonly TransferListItem[]): void;
402
402
  /**
403
403
  * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does_not_ let the program exit if it's the only active handle left (the default
404
404
  * behavior). If the worker is `ref()`ed, calling `ref()` again has