@types/node 14.18.61 → 14.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.
Files changed (86) hide show
  1. node v14.18/README.md +1 -1
  2. node v14.18/assert.d.ts +33 -31
  3. node v14.18/async_hooks.d.ts +27 -20
  4. node v14.18/buffer.d.ts +4 -4
  5. node v14.18/child_process.d.ts +191 -62
  6. node v14.18/cluster.d.ts +59 -28
  7. node v14.18/console.d.ts +6 -6
  8. node v14.18/constants.d.ts +12 -11
  9. node v14.18/crypto.d.ts +232 -228
  10. node v14.18/dgram.d.ts +50 -14
  11. node v14.18/dns.d.ts +183 -54
  12. node v14.18/domain.d.ts +4 -4
  13. node v14.18/events.d.ts +4 -4
  14. node v14.18/fs/promises.d.ts +87 -25
  15. node v14.18/fs.d.ts +404 -104
  16. node v14.18/globals.d.ts +33 -16
  17. node v14.18/http.d.ts +201 -201
  18. node v14.18/http2.d.ts +340 -93
  19. node v14.18/https.d.ts +107 -105
  20. node v14.18/inspector.d.ts +4 -4
  21. node v14.18/module.d.ts +4 -4
  22. node v14.18/net.d.ts +27 -12
  23. node v14.18/os.d.ts +4 -4
  24. node v14.18/package.json +2 -2
  25. node v14.18/path.d.ts +5 -5
  26. node v14.18/perf_hooks.d.ts +5 -5
  27. node v14.18/process.d.ts +61 -22
  28. node v14.18/punycode.d.ts +3 -3
  29. node v14.18/querystring.d.ts +15 -5
  30. node v14.18/readline.d.ts +16 -6
  31. node v14.18/repl.d.ts +13 -7
  32. node v14.18/stream.d.ts +160 -100
  33. node v14.18/string_decoder.d.ts +3 -3
  34. node v14.18/timers.d.ts +3 -3
  35. node v14.18/tls.d.ts +109 -27
  36. node v14.18/trace_events.d.ts +3 -3
  37. node v14.18/ts4.8/assert.d.ts +33 -31
  38. node v14.18/ts4.8/async_hooks.d.ts +27 -20
  39. node v14.18/ts4.8/buffer.d.ts +4 -4
  40. node v14.18/ts4.8/child_process.d.ts +191 -62
  41. node v14.18/ts4.8/cluster.d.ts +59 -28
  42. node v14.18/ts4.8/console.d.ts +6 -6
  43. node v14.18/ts4.8/constants.d.ts +12 -11
  44. node v14.18/ts4.8/crypto.d.ts +232 -228
  45. node v14.18/ts4.8/dgram.d.ts +50 -14
  46. node v14.18/ts4.8/dns.d.ts +183 -54
  47. node v14.18/ts4.8/domain.d.ts +4 -4
  48. node v14.18/ts4.8/events.d.ts +4 -4
  49. node v14.18/ts4.8/fs/promises.d.ts +87 -25
  50. node v14.18/ts4.8/fs.d.ts +404 -104
  51. node v14.18/ts4.8/globals.d.ts +33 -16
  52. node v14.18/ts4.8/http.d.ts +200 -200
  53. node v14.18/ts4.8/http2.d.ts +340 -93
  54. node v14.18/ts4.8/https.d.ts +107 -105
  55. node v14.18/ts4.8/inspector.d.ts +4 -4
  56. node v14.18/ts4.8/module.d.ts +4 -4
  57. node v14.18/ts4.8/net.d.ts +27 -12
  58. node v14.18/ts4.8/os.d.ts +4 -4
  59. node v14.18/ts4.8/path.d.ts +5 -5
  60. node v14.18/ts4.8/perf_hooks.d.ts +5 -5
  61. node v14.18/ts4.8/process.d.ts +61 -22
  62. node v14.18/ts4.8/punycode.d.ts +3 -3
  63. node v14.18/ts4.8/querystring.d.ts +15 -5
  64. node v14.18/ts4.8/readline.d.ts +16 -6
  65. node v14.18/ts4.8/repl.d.ts +13 -7
  66. node v14.18/ts4.8/stream.d.ts +160 -100
  67. node v14.18/ts4.8/string_decoder.d.ts +3 -3
  68. node v14.18/ts4.8/timers.d.ts +3 -3
  69. node v14.18/ts4.8/tls.d.ts +109 -27
  70. node v14.18/ts4.8/trace_events.d.ts +3 -3
  71. node v14.18/ts4.8/tty.d.ts +4 -4
  72. node v14.18/ts4.8/url.d.ts +21 -12
  73. node v14.18/ts4.8/util.d.ts +102 -40
  74. node v14.18/ts4.8/v8.d.ts +4 -5
  75. node v14.18/ts4.8/vm.d.ts +7 -7
  76. node v14.18/ts4.8/wasi.d.ts +3 -4
  77. node v14.18/ts4.8/worker_threads.d.ts +8 -8
  78. node v14.18/ts4.8/zlib.d.ts +13 -13
  79. node v14.18/tty.d.ts +4 -4
  80. node v14.18/url.d.ts +21 -12
  81. node v14.18/util.d.ts +102 -40
  82. node v14.18/v8.d.ts +4 -5
  83. node v14.18/vm.d.ts +7 -7
  84. node v14.18/wasi.d.ts +3 -4
  85. node v14.18/worker_threads.d.ts +8 -8
  86. node v14.18/zlib.d.ts +13 -13
@@ -1,6 +1,6 @@
1
- declare module 'node:tls' {
2
- import * as net from 'net';
3
- import * as stream from 'stream';
1
+ declare module "tls" {
2
+ import * as net from "net";
3
+ import * as stream from "stream";
4
4
 
5
5
  const CLIENT_RENEG_LIMIT: number;
6
6
  const CLIENT_RENEG_WINDOW: number;
@@ -266,7 +266,10 @@ declare module 'node:tls' {
266
266
  * is successfully completed.
267
267
  * @return `undefined` when socket is destroy, `false` if negotiaion can't be initiated.
268
268
  */
269
- renegotiate(options: { rejectUnauthorized?: boolean | undefined, requestCert?: boolean | undefined }, callback: (err: Error | null) => void): undefined | boolean;
269
+ renegotiate(
270
+ options: { rejectUnauthorized?: boolean | undefined; requestCert?: boolean | undefined },
271
+ callback: (err: Error | null) => void,
272
+ ): undefined | boolean;
270
273
  /**
271
274
  * Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512).
272
275
  * Smaller fragment size decreases buffering latency on the client: large fragments are buffered by
@@ -404,7 +407,6 @@ declare module 'node:tls' {
404
407
  ticketKeys?: Buffer | undefined;
405
408
 
406
409
  /**
407
- *
408
410
  * @param socket
409
411
  * @param identity identity parameter sent from the client.
410
412
  * @return pre-shared key that must either be
@@ -484,7 +486,6 @@ declare module 'node:tls' {
484
486
  */
485
487
  getTicketKeys(): Buffer;
486
488
  /**
487
- *
488
489
  * The server.setSecureContext() method replaces the
489
490
  * secure context of an existing server. Existing connections to the
490
491
  * server are not interrupted.
@@ -508,49 +509,120 @@ declare module 'node:tls' {
508
509
  */
509
510
  addListener(event: string, listener: (...args: any[]) => void): this;
510
511
  addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
511
- addListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
512
- addListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
513
- addListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
512
+ addListener(
513
+ event: "newSession",
514
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
515
+ ): this;
516
+ addListener(
517
+ event: "OCSPRequest",
518
+ listener: (
519
+ certificate: Buffer,
520
+ issuer: Buffer,
521
+ callback: (err: Error | null, resp: Buffer) => void,
522
+ ) => void,
523
+ ): this;
524
+ addListener(
525
+ event: "resumeSession",
526
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
527
+ ): this;
514
528
  addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
515
529
  addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
516
530
 
517
531
  emit(event: string | symbol, ...args: any[]): boolean;
518
532
  emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
519
533
  emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: () => void): boolean;
520
- emit(event: "OCSPRequest", certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean;
521
- emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void): boolean;
534
+ emit(
535
+ event: "OCSPRequest",
536
+ certificate: Buffer,
537
+ issuer: Buffer,
538
+ callback: (err: Error | null, resp: Buffer) => void,
539
+ ): boolean;
540
+ emit(
541
+ event: "resumeSession",
542
+ sessionId: Buffer,
543
+ callback: (err: Error | null, sessionData: Buffer | null) => void,
544
+ ): boolean;
522
545
  emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
523
546
  emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean;
524
547
 
525
548
  on(event: string, listener: (...args: any[]) => void): this;
526
549
  on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
527
550
  on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
528
- on(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
529
- on(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
551
+ on(
552
+ event: "OCSPRequest",
553
+ listener: (
554
+ certificate: Buffer,
555
+ issuer: Buffer,
556
+ callback: (err: Error | null, resp: Buffer) => void,
557
+ ) => void,
558
+ ): this;
559
+ on(
560
+ event: "resumeSession",
561
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
562
+ ): this;
530
563
  on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
531
564
  on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
532
565
 
533
566
  once(event: string, listener: (...args: any[]) => void): this;
534
567
  once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
535
- once(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
536
- once(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
537
- once(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
568
+ once(
569
+ event: "newSession",
570
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
571
+ ): this;
572
+ once(
573
+ event: "OCSPRequest",
574
+ listener: (
575
+ certificate: Buffer,
576
+ issuer: Buffer,
577
+ callback: (err: Error | null, resp: Buffer) => void,
578
+ ) => void,
579
+ ): this;
580
+ once(
581
+ event: "resumeSession",
582
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
583
+ ): this;
538
584
  once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
539
585
  once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
540
586
 
541
587
  prependListener(event: string, listener: (...args: any[]) => void): this;
542
588
  prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
543
- prependListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
544
- prependListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
545
- prependListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
589
+ prependListener(
590
+ event: "newSession",
591
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
592
+ ): this;
593
+ prependListener(
594
+ event: "OCSPRequest",
595
+ listener: (
596
+ certificate: Buffer,
597
+ issuer: Buffer,
598
+ callback: (err: Error | null, resp: Buffer) => void,
599
+ ) => void,
600
+ ): this;
601
+ prependListener(
602
+ event: "resumeSession",
603
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
604
+ ): this;
546
605
  prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
547
606
  prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
548
607
 
549
608
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
550
609
  prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
551
- prependOnceListener(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
552
- prependOnceListener(event: "OCSPRequest", listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this;
553
- prependOnceListener(event: "resumeSession", listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void): this;
610
+ prependOnceListener(
611
+ event: "newSession",
612
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
613
+ ): this;
614
+ prependOnceListener(
615
+ event: "OCSPRequest",
616
+ listener: (
617
+ certificate: Buffer,
618
+ issuer: Buffer,
619
+ callback: (err: Error | null, resp: Buffer) => void,
620
+ ) => void,
621
+ ): this;
622
+ prependOnceListener(
623
+ event: "resumeSession",
624
+ listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
625
+ ): this;
554
626
  prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
555
627
  prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
556
628
  }
@@ -560,7 +632,7 @@ declare module 'node:tls' {
560
632
  cleartext: TLSSocket;
561
633
  }
562
634
 
563
- type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
635
+ type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
564
636
 
565
637
  interface SecureContextOptions {
566
638
  /**
@@ -736,12 +808,22 @@ declare module 'node:tls' {
736
808
  function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
737
809
  function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
738
810
  function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
739
- function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
811
+ function connect(
812
+ port: number,
813
+ host?: string,
814
+ options?: ConnectionOptions,
815
+ secureConnectListener?: () => void,
816
+ ): TLSSocket;
740
817
  function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
741
818
  /**
742
819
  * @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
743
820
  */
744
- function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
821
+ function createSecurePair(
822
+ credentials?: SecureContext,
823
+ isServer?: boolean,
824
+ requestCert?: boolean,
825
+ rejectUnauthorized?: boolean,
826
+ ): SecurePair;
745
827
  function createSecureContext(options?: SecureContextOptions): SecureContext;
746
828
  function getCiphers(): string[];
747
829
 
@@ -779,6 +861,6 @@ declare module 'node:tls' {
779
861
  */
780
862
  const rootCertificates: ReadonlyArray<string>;
781
863
  }
782
- declare module 'tls' {
783
- export * from 'node:tls';
864
+ declare module "node:tls" {
865
+ export * from "tls";
784
866
  }
@@ -1,4 +1,4 @@
1
- declare module 'node:trace_events' {
1
+ declare module "trace_events" {
2
2
  /**
3
3
  * The `Tracing` object is used to enable or disable tracing for sets of
4
4
  * categories. Instances are created using the
@@ -59,6 +59,6 @@ declare module 'node:trace_events' {
59
59
  */
60
60
  function getEnabledCategories(): string | undefined;
61
61
  }
62
- declare module 'trace_events' {
63
- export * from 'node:trace_events';
62
+ declare module "node:trace_events" {
63
+ export * from "trace_events";
64
64
  }
@@ -1,5 +1,5 @@
1
- declare module 'node:tty' {
2
- import * as net from 'net';
1
+ declare module "tty" {
2
+ import * as net from "net";
3
3
 
4
4
  function isatty(fd: number): boolean;
5
5
  class ReadStream extends net.Socket {
@@ -64,6 +64,6 @@ declare module 'node:tty' {
64
64
  isTTY: boolean;
65
65
  }
66
66
  }
67
- declare module 'tty' {
68
- export * from 'node:tty';
67
+ declare module "node:tty" {
68
+ export * from "tty";
69
69
  }
@@ -1,6 +1,6 @@
1
- declare module 'node:url' {
2
- import { ClientRequestArgs } from 'node:http';
3
- import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
1
+ declare module "url" {
2
+ import { ClientRequestArgs } from "node:http";
3
+ import { ParsedUrlQuery, ParsedUrlQueryInput } from "querystring";
4
4
 
5
5
  // Input to `url.format`
6
6
  interface UrlObject {
@@ -44,7 +44,11 @@ declare module 'node:url' {
44
44
  /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
45
45
  function parse(urlStr: string): UrlWithStringQuery;
46
46
  /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
47
- function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
47
+ function parse(
48
+ urlStr: string,
49
+ parseQueryString: false | undefined,
50
+ slashesDenoteHost?: boolean,
51
+ ): UrlWithStringQuery;
48
52
  /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
49
53
  function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
50
54
  /** @deprecated since v11.0.0 - Use the WHATWG URL API. */
@@ -126,7 +130,14 @@ declare module 'node:url' {
126
130
  }
127
131
 
128
132
  class URLSearchParams implements Iterable<[string, string]> {
129
- constructor(init?: URLSearchParams | string | Record<string, string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
133
+ constructor(
134
+ init?:
135
+ | URLSearchParams
136
+ | string
137
+ | Record<string, string | ReadonlyArray<string>>
138
+ | Iterable<[string, string]>
139
+ | ReadonlyArray<[string, string]>,
140
+ );
130
141
  readonly size: number;
131
142
  append(name: string, value: string): void;
132
143
  delete(name: string): void;
@@ -143,7 +154,7 @@ declare module 'node:url' {
143
154
  [Symbol.iterator](): IterableIterator<[string, string]>;
144
155
  }
145
156
 
146
- import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
157
+ import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
147
158
  global {
148
159
  interface URLSearchParams extends _URLSearchParams {}
149
160
  interface URL extends _URL {}
@@ -158,8 +169,7 @@ declare module 'node:url' {
158
169
  */
159
170
  var URL:
160
171
  // For compatibility with "dom" and "webworker" URL declarations
161
- typeof globalThis extends { onmessage: any, URL: infer URL }
162
- ? URL
172
+ typeof globalThis extends { onmessage: any; URL: infer URL } ? URL
163
173
  : typeof _URL;
164
174
  /**
165
175
  * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
@@ -168,11 +178,10 @@ declare module 'node:url' {
168
178
  */
169
179
  var URLSearchParams:
170
180
  // For compatibility with "dom" and "webworker" URLSearchParams declarations
171
- typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
172
- ? URLSearchParams
181
+ typeof globalThis extends { onmessage: any; URLSearchParams: infer URLSearchParams } ? URLSearchParams
173
182
  : typeof _URLSearchParams;
174
183
  }
175
184
  }
176
- declare module 'url' {
177
- export * from 'node:url';
185
+ declare module "node:url" {
186
+ export * from "url";
178
187
  }
@@ -1,6 +1,17 @@
1
- declare module 'node:util' {
2
- interface InspectOptions extends NodeJS.InspectOptions { }
3
- type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
1
+ declare module "util" {
2
+ interface InspectOptions extends NodeJS.InspectOptions {}
3
+ type Style =
4
+ | "special"
5
+ | "number"
6
+ | "bigint"
7
+ | "boolean"
8
+ | "undefined"
9
+ | "null"
10
+ | "string"
11
+ | "symbol"
12
+ | "date"
13
+ | "regexp"
14
+ | "module";
4
15
  type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => string;
5
16
  interface InspectOptionsStylized extends InspectOptions {
6
17
  stylize(text: string, styleType: Style): string;
@@ -15,7 +26,7 @@ declare module 'node:util' {
15
26
  namespace inspect {
16
27
  let colors: NodeJS.Dict<[number, number]>;
17
28
  let styles: {
18
- [K in Style]: string
29
+ [K in Style]: string;
19
30
  };
20
31
  let defaultOptions: InspectOptions;
21
32
  /**
@@ -65,29 +76,74 @@ declare module 'node:util' {
65
76
  function isDeepStrictEqual(val1: any, val2: any): boolean;
66
77
 
67
78
  function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
68
- function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
69
- function callbackify<T1>(fn: (arg1: T1) => Promise<void>): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
70
- function callbackify<T1, TResult>(fn: (arg1: T1) => Promise<TResult>): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
71
- function callbackify<T1, T2>(fn: (arg1: T1, arg2: T2) => Promise<void>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
72
- function callbackify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2) => Promise<TResult>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
73
- function callbackify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
79
+ function callbackify<TResult>(
80
+ fn: () => Promise<TResult>,
81
+ ): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
82
+ function callbackify<T1>(
83
+ fn: (arg1: T1) => Promise<void>,
84
+ ): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
85
+ function callbackify<T1, TResult>(
86
+ fn: (arg1: T1) => Promise<TResult>,
87
+ ): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
88
+ function callbackify<T1, T2>(
89
+ fn: (arg1: T1, arg2: T2) => Promise<void>,
90
+ ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
91
+ function callbackify<T1, T2, TResult>(
92
+ fn: (arg1: T1, arg2: T2) => Promise<TResult>,
93
+ ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
94
+ function callbackify<T1, T2, T3>(
95
+ fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>,
96
+ ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
74
97
  function callbackify<T1, T2, T3, TResult>(
75
- fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
98
+ fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>,
99
+ ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
76
100
  function callbackify<T1, T2, T3, T4>(
77
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
101
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>,
102
+ ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
78
103
  function callbackify<T1, T2, T3, T4, TResult>(
79
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
104
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>,
105
+ ): (
106
+ arg1: T1,
107
+ arg2: T2,
108
+ arg3: T3,
109
+ arg4: T4,
110
+ callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
111
+ ) => void;
80
112
  function callbackify<T1, T2, T3, T4, T5>(
81
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
113
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>,
114
+ ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
82
115
  function callbackify<T1, T2, T3, T4, T5, TResult>(
83
116
  fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>,
84
- ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
117
+ ): (
118
+ arg1: T1,
119
+ arg2: T2,
120
+ arg3: T3,
121
+ arg4: T4,
122
+ arg5: T5,
123
+ callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
124
+ ) => void;
85
125
  function callbackify<T1, T2, T3, T4, T5, T6>(
86
126
  fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>,
87
- ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void;
127
+ ): (
128
+ arg1: T1,
129
+ arg2: T2,
130
+ arg3: T3,
131
+ arg4: T4,
132
+ arg5: T5,
133
+ arg6: T6,
134
+ callback: (err: NodeJS.ErrnoException) => void,
135
+ ) => void;
88
136
  function callbackify<T1, T2, T3, T4, T5, T6, TResult>(
89
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>
90
- ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
137
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>,
138
+ ): (
139
+ arg1: T1,
140
+ arg2: T2,
141
+ arg3: T3,
142
+ arg4: T4,
143
+ arg5: T5,
144
+ arg6: T6,
145
+ callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
146
+ ) => void;
91
147
 
92
148
  interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
93
149
  __promisify__: TCustom;
@@ -102,18 +158,28 @@ declare module 'node:util' {
102
158
  function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
103
159
  function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
104
160
  function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
105
- function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
161
+ function promisify<T1, TResult>(
162
+ fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void,
163
+ ): (arg1: T1) => Promise<TResult>;
106
164
  function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
107
- function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
108
- function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
109
- function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void):
110
- (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
111
- function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
165
+ function promisify<T1, T2, TResult>(
166
+ fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void,
167
+ ): (arg1: T1, arg2: T2) => Promise<TResult>;
168
+ function promisify<T1, T2>(
169
+ fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void,
170
+ ): (arg1: T1, arg2: T2) => Promise<void>;
171
+ function promisify<T1, T2, T3, TResult>(
172
+ fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void,
173
+ ): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
174
+ function promisify<T1, T2, T3>(
175
+ fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void,
176
+ ): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
112
177
  function promisify<T1, T2, T3, T4, TResult>(
113
178
  fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
114
179
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
115
- function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void):
116
- (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
180
+ function promisify<T1, T2, T3, T4>(
181
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void,
182
+ ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
117
183
  function promisify<T1, T2, T3, T4, T5, TResult>(
118
184
  fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
119
185
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
@@ -147,10 +213,8 @@ declare module 'node:util' {
147
213
  function isInt32Array(object: any): object is Int32Array;
148
214
  function isMap<T>(
149
215
  object: T | {},
150
- ): object is T extends ReadonlyMap<any, any>
151
- ? unknown extends T
152
- ? never
153
- : ReadonlyMap<any, any>
216
+ ): object is T extends ReadonlyMap<any, any> ? unknown extends T ? never
217
+ : ReadonlyMap<any, any>
154
218
  : Map<any, any>;
155
219
  function isMapIterator(object: any): boolean;
156
220
  function isModuleNamespaceObject(value: any): boolean;
@@ -161,10 +225,8 @@ declare module 'node:util' {
161
225
  function isRegExp(object: any): object is RegExp;
162
226
  function isSet<T>(
163
227
  object: T | {},
164
- ): object is T extends ReadonlySet<any>
165
- ? unknown extends T
166
- ? never
167
- : ReadonlySet<any>
228
+ ): object is T extends ReadonlySet<any> ? unknown extends T ? never
229
+ : ReadonlySet<any>
168
230
  : Set<any>;
169
231
  function isSetIterator(object: any): boolean;
170
232
  function isSharedArrayBuffer(object: any): object is SharedArrayBuffer;
@@ -184,12 +246,12 @@ declare module 'node:util' {
184
246
  readonly fatal: boolean;
185
247
  readonly ignoreBOM: boolean;
186
248
  constructor(
187
- encoding?: string,
188
- options?: { fatal?: boolean | undefined; ignoreBOM?: boolean | undefined }
249
+ encoding?: string,
250
+ options?: { fatal?: boolean | undefined; ignoreBOM?: boolean | undefined },
189
251
  );
190
252
  decode(
191
- input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
192
- options?: { stream?: boolean | undefined }
253
+ input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
254
+ options?: { stream?: boolean | undefined },
193
255
  ): string;
194
256
  }
195
257
 
@@ -211,6 +273,6 @@ declare module 'node:util' {
211
273
  encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
212
274
  }
213
275
  }
214
- declare module 'util' {
215
- export * from 'node:util';
276
+ declare module "node:util" {
277
+ export * from "util";
216
278
  }
@@ -1,5 +1,5 @@
1
- declare module 'node:v8' {
2
- import { Readable } from 'stream';
1
+ declare module "v8" {
2
+ import { Readable } from "stream";
3
3
 
4
4
  interface HeapSpaceInfo {
5
5
  space_name: string;
@@ -52,7 +52,6 @@ declare module 'node:v8' {
52
52
  function getHeapSnapshot(): Readable;
53
53
 
54
54
  /**
55
- *
56
55
  * @param fileName The file path where the V8 heap snapshot is to be
57
56
  * saved. If not specified, a file name with the pattern
58
57
  * `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be
@@ -185,6 +184,6 @@ declare module 'node:v8' {
185
184
  */
186
185
  function deserialize(data: NodeJS.TypedArray): any;
187
186
  }
188
- declare module 'v8' {
189
- export * from 'node:v8';
187
+ declare module "node:v8" {
188
+ export * from "v8";
190
189
  }
@@ -1,5 +1,5 @@
1
- declare module 'node:vm' {
2
- interface Context extends NodeJS.Dict<any> { }
1
+ declare module "vm" {
2
+ interface Context extends NodeJS.Dict<any> {}
3
3
  interface BaseOptions {
4
4
  /**
5
5
  * Specifies the filename used in stack traces produced by this script.
@@ -45,7 +45,7 @@ declare module 'node:vm' {
45
45
  /**
46
46
  * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
47
47
  */
48
- microtaskMode?: 'afterEvaluate' | undefined;
48
+ microtaskMode?: "afterEvaluate" | undefined;
49
49
  }
50
50
  interface CompileFunctionOptions extends BaseOptions {
51
51
  /**
@@ -98,10 +98,10 @@ declare module 'node:vm' {
98
98
  /**
99
99
  * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
100
100
  */
101
- microtaskMode?: 'afterEvaluate' | undefined;
101
+ microtaskMode?: "afterEvaluate" | undefined;
102
102
  }
103
103
 
104
- type MeasureMemoryMode = 'summary' | 'detailed';
104
+ type MeasureMemoryMode = "summary" | "detailed";
105
105
 
106
106
  interface MeasureMemoryOptions {
107
107
  /**
@@ -150,6 +150,6 @@ declare module 'node:vm' {
150
150
  */
151
151
  function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
152
152
  }
153
- declare module 'vm' {
154
- export * from 'node:vm';
153
+ declare module "node:vm" {
154
+ export * from "vm";
155
155
  }
@@ -1,4 +1,4 @@
1
- declare module 'node:wasi' {
1
+ declare module "wasi" {
2
2
  interface WASIOptions {
3
3
  /**
4
4
  * An array of strings that the WebAssembly application will
@@ -52,7 +52,6 @@ declare module 'node:wasi' {
52
52
  class WASI {
53
53
  constructor(options?: WASIOptions);
54
54
  /**
55
- *
56
55
  * Attempt to begin execution of `instance` by invoking its `_start()` export.
57
56
  * If `instance` does not contain a `_start()` export, then `start()` attempts to
58
57
  * invoke the `__wasi_unstable_reactor_start()` export. If neither of those exports
@@ -84,6 +83,6 @@ declare module 'node:wasi' {
84
83
  readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
85
84
  }
86
85
  }
87
- declare module 'wasi' {
88
- export * from 'node:wasi';
86
+ declare module "node:wasi" {
87
+ export * from "wasi";
89
88
  }
@@ -1,9 +1,9 @@
1
- declare module 'node:worker_threads' {
2
- import { Context } from 'vm';
3
- import EventEmitter = require('events');
4
- import { Readable, Writable } from 'stream';
5
- import { URL } from 'url';
6
- import { FileHandle } from 'fs/promises';
1
+ declare module "worker_threads" {
2
+ import { Context } from "vm";
3
+ import EventEmitter = require("events");
4
+ import { Readable, Writable } from "stream";
5
+ import { URL } from "url";
6
+ import { FileHandle } from "fs/promises";
7
7
 
8
8
  const isMainThread: boolean;
9
9
  const parentPort: null | MessagePort;
@@ -236,6 +236,6 @@ declare module 'node:worker_threads' {
236
236
  */
237
237
  function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
238
238
  }
239
- declare module 'worker_threads' {
240
- export * from 'node:worker_threads';
239
+ declare module "node:worker_threads" {
240
+ export * from "worker_threads";
241
241
  }