@types/node 18.18.10 → 18.18.12

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 CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 18 Nov 2023 20:07:14 GMT
11
+ * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v18.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 v18.18/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: ReadonlyArray<any>): Buffer;
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 | ReadonlyArray<number>): Buffer;
303
- from(data: WithImplicitCoercion<Uint8Array | ReadonlyArray<number> | string>): Buffer;
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: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
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?: ReadonlyArray<string>,
840
+ args?: readonly string[],
841
841
  options?: SpawnOptionsWithoutStdio,
842
842
  ): ChildProcessWithoutNullStreams;
843
843
  function spawn(
844
844
  command: string,
845
- args: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
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: ReadonlyArray<string>,
880
+ args: readonly string[],
881
881
  options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
882
882
  ): ChildProcessByStdio<null, null, null>;
883
- function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
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?: ReadonlyArray<string> | null): ChildProcess;
1157
+ function execFile(file: string, args?: readonly string[] | null): ChildProcess;
1158
1158
  function execFile(
1159
1159
  file: string,
1160
- args: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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: ReadonlyArray<string> | undefined | null,
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?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
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: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
1435
+ function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
1436
1436
  function spawnSync(
1437
1437
  command: string,
1438
- args: ReadonlyArray<string>,
1438
+ args: readonly string[],
1439
1439
  options: SpawnSyncOptionsWithStringEncoding,
1440
1440
  ): SpawnSyncReturns<string>;
1441
1441
  function spawnSync(
1442
1442
  command: string,
1443
- args: ReadonlyArray<string>,
1443
+ args: readonly string[],
1444
1444
  options: SpawnSyncOptionsWithBufferEncoding,
1445
1445
  ): SpawnSyncReturns<Buffer>;
1446
1446
  function spawnSync(
1447
1447
  command: string,
1448
- args?: ReadonlyArray<string>,
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: ReadonlyArray<string>): Buffer;
1529
+ function execFileSync(file: string, args: readonly string[]): Buffer;
1530
1530
  function execFileSync(
1531
1531
  file: string,
1532
- args: ReadonlyArray<string>,
1532
+ args: readonly string[],
1533
1533
  options: ExecFileSyncOptionsWithStringEncoding,
1534
1534
  ): string;
1535
1535
  function execFileSync(
1536
1536
  file: string,
1537
- args: ReadonlyArray<string>,
1537
+ args: readonly string[],
1538
1538
  options: ExecFileSyncOptionsWithBufferEncoding,
1539
1539
  ): Buffer;
1540
- function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
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";
@@ -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 v18.18/crypto.d.ts CHANGED
@@ -4203,7 +4203,7 @@ declare module "crypto" {
4203
4203
  | HkdfParams
4204
4204
  | Pbkdf2Params,
4205
4205
  extractable: boolean,
4206
- keyUsages: ReadonlyArray<KeyUsage>,
4206
+ keyUsages: readonly KeyUsage[],
4207
4207
  ): Promise<CryptoKey>;
4208
4208
  /**
4209
4209
  * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
@@ -4283,12 +4283,12 @@ declare module "crypto" {
4283
4283
  generateKey(
4284
4284
  algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
4285
4285
  extractable: boolean,
4286
- keyUsages: ReadonlyArray<KeyUsage>,
4286
+ keyUsages: readonly KeyUsage[],
4287
4287
  ): Promise<CryptoKeyPair>;
4288
4288
  generateKey(
4289
4289
  algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
4290
4290
  extractable: boolean,
4291
- keyUsages: ReadonlyArray<KeyUsage>,
4291
+ keyUsages: readonly KeyUsage[],
4292
4292
  ): Promise<CryptoKey>;
4293
4293
  generateKey(
4294
4294
  algorithm: AlgorithmIdentifier,
@@ -4315,7 +4315,7 @@ declare module "crypto" {
4315
4315
  | HmacImportParams
4316
4316
  | AesKeyAlgorithm,
4317
4317
  extractable: boolean,
4318
- keyUsages: ReadonlyArray<KeyUsage>,
4318
+ keyUsages: readonly KeyUsage[],
4319
4319
  ): Promise<CryptoKey>;
4320
4320
  importKey(
4321
4321
  format: Exclude<KeyFormat, "jwk">,
node v18.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(
@@ -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: ReadonlyArray<string>): void;
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/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: ReadonlyArray<string>): void;
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
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/fs.d.ts CHANGED
@@ -3991,12 +3991,12 @@ declare module "fs" {
3991
3991
  */
3992
3992
  export function writev(
3993
3993
  fd: number,
3994
- buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>,
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: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
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/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 | ReadonlyArray<string>): this;
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 | ReadonlyArray<string>): this;
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/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;
@@ -978,7 +979,7 @@ declare module "http2" {
978
979
  ): this;
979
980
  addListener(event: string | symbol, listener: (...args: any[]) => void): this;
980
981
  emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
981
- emit(event: "origin", origins: ReadonlyArray<string>): boolean;
982
+ emit(event: "origin", origins: readonly string[]): boolean;
982
983
  emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
983
984
  emit(
984
985
  event: "stream",
@@ -1416,7 +1417,7 @@ declare module "http2" {
1416
1417
  stream: ServerHttp2Stream,
1417
1418
  headers: IncomingHttpHeaders,
1418
1419
  options: stream.ReadableOptions,
1419
- rawHeaders: ReadonlyArray<string>,
1420
+ rawHeaders: readonly string[],
1420
1421
  );
1421
1422
  /**
1422
1423
  * The `request.aborted` property will be `true` if the request has
@@ -1857,7 +1858,7 @@ declare module "http2" {
1857
1858
  * ```
1858
1859
  * @since v8.4.0
1859
1860
  */
1860
- setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
1861
+ setHeader(name: string, value: number | string | readonly string[]): void;
1861
1862
  /**
1862
1863
  * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
1863
1864
  * 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": "18.18.10",
3
+ "version": "18.18.12",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -229,7 +229,7 @@
229
229
  "dependencies": {
230
230
  "undici-types": "~5.26.4"
231
231
  },
232
- "typesPublisherContentHash": "9d695b1bd61afe9cc28f9cabf21e18fe61811997a6fcb29768f4d6ce7f7e2d3d",
232
+ "typesPublisherContentHash": "2fa3455ed91224979461178d2ac99888c6c16ea5096afe60d5785fecf7f00911",
233
233
  "typeScriptVersion": "4.5",
234
234
  "nonNpm": true
235
235
  }
@@ -445,7 +445,7 @@ declare module "perf_hooks" {
445
445
  observe(
446
446
  options:
447
447
  | {
448
- entryTypes: ReadonlyArray<EntryType>;
448
+ entryTypes: readonly EntryType[];
449
449
  buffered?: boolean | undefined;
450
450
  }
451
451
  | {
@@ -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 v18.18/timers.d.ts CHANGED
@@ -89,7 +89,7 @@ declare module "timers" {
89
89
  ...args: TArgs
90
90
  ): NodeJS.Timeout;
91
91
  // util.promisify no rest args compability
92
- // tslint:disable-next-line void-return
92
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
93
93
  function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
94
94
  namespace setTimeout {
95
95
  const __promisify__: typeof setTimeoutPromise;
@@ -101,7 +101,7 @@ declare module "timers" {
101
101
  ...args: TArgs
102
102
  ): NodeJS.Timeout;
103
103
  // util.promisify no rest args compability
104
- // tslint:disable-next-line void-return
104
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
105
105
  function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
106
106
  namespace setInterval {
107
107
  const __promisify__: typeof setIntervalPromise;
@@ -112,7 +112,7 @@ declare module "timers" {
112
112
  ...args: TArgs
113
113
  ): NodeJS.Immediate;
114
114
  // util.promisify no rest args compability
115
- // tslint:disable-next-line void-return
115
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
116
116
  function setImmediate(callback: (args: void) => void): NodeJS.Immediate;
117
117
  namespace setImmediate {
118
118
  const __promisify__: typeof setImmediatePromise;
node v18.18/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: ReadonlyArray<string>;
1187
+ const rootCertificates: readonly string[];
1188
1188
  }
1189
1189
  declare module "node:tls" {
1190
1190
  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
  /**