@types/node 17.0.45 → 18.0.2

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 (55) hide show
  1. {node v17.0 → node}/LICENSE +0 -0
  2. node v17.0/README.md → node/README.md +3 -3
  3. {node v17.0 → node}/assert/strict.d.ts +0 -0
  4. node v17.0/assert.d.ts → node/assert.d.ts +7 -8
  5. node v17.0/async_hooks.d.ts → node/async_hooks.d.ts +2 -2
  6. node v17.0/buffer.d.ts → node/buffer.d.ts +11 -5
  7. node v17.0/child_process.d.ts → node/child_process.d.ts +6 -3
  8. node v17.0/cluster.d.ts → node/cluster.d.ts +14 -18
  9. node v17.0/console.d.ts → node/console.d.ts +1 -1
  10. {node v17.0 → node}/constants.d.ts +0 -0
  11. node v17.0/crypto.d.ts → node/crypto.d.ts +109 -37
  12. node v17.0/dgram.d.ts → node/dgram.d.ts +2 -2
  13. node v17.0/diagnostics_channel.d.ts → node/diagnostics_channel.d.ts +2 -1
  14. node v17.0/dns/promises.d.ts → node/dns/promises.d.ts +2 -2
  15. node v17.0/dns.d.ts → node/dns.d.ts +2 -2
  16. node v17.0/domain.d.ts → node/domain.d.ts +3 -2
  17. node v17.0/events.d.ts → node/events.d.ts +17 -27
  18. node v17.0/fs/promises.d.ts → node/fs/promises.d.ts +40 -17
  19. node v17.0/fs.d.ts → node/fs.d.ts +33 -44
  20. {node v17.0 → node}/globals.d.ts +0 -0
  21. {node v17.0 → node}/globals.global.d.ts +0 -0
  22. node v17.0/http.d.ts → node/http.d.ts +79 -23
  23. node v17.0/http2.d.ts → node/http2.d.ts +7 -2
  24. node v17.0/https.d.ts → node/https.d.ts +11 -1
  25. node v17.0/index.d.ts → node/index.d.ts +3 -1
  26. node v17.0/inspector.d.ts → node/inspector.d.ts +10 -13
  27. {node v17.0 → node}/module.d.ts +0 -0
  28. node v17.0/net.d.ts → node/net.d.ts +32 -7
  29. node v17.0/os.d.ts → node/os.d.ts +5 -4
  30. node v17.0/package.json → node/package.json +7 -2
  31. node v17.0/path.d.ts → node/path.d.ts +1 -1
  32. node v17.0/perf_hooks.d.ts → node/perf_hooks.d.ts +10 -2
  33. node v17.0/process.d.ts → node/process.d.ts +14 -13
  34. node v17.0/punycode.d.ts → node/punycode.d.ts +1 -1
  35. node v17.0/querystring.d.ts → node/querystring.d.ts +1 -1
  36. node v17.0/readline.d.ts → node/readline.d.ts +2 -2
  37. node v17.0/repl.d.ts → node/repl.d.ts +2 -2
  38. {node v17.0 → node}/stream/consumers.d.ts +0 -0
  39. {node v17.0 → node}/stream/promises.d.ts +0 -0
  40. {node v17.0 → node}/stream/web.d.ts +0 -0
  41. node v17.0/stream.d.ts → node/stream.d.ts +65 -15
  42. node v17.0/string_decoder.d.ts → node/string_decoder.d.ts +1 -1
  43. node/test.d.ts +142 -0
  44. {node v17.0 → node}/timers/promises.d.ts +0 -0
  45. node v17.0/timers.d.ts → node/timers.d.ts +3 -3
  46. node v17.0/tls.d.ts → node/tls.d.ts +18 -10
  47. node v17.0/trace_events.d.ts → node/trace_events.d.ts +11 -1
  48. node v17.0/tty.d.ts → node/tty.d.ts +4 -2
  49. node v17.0/url.d.ts → node/url.d.ts +25 -19
  50. node v17.0/util.d.ts → node/util.d.ts +20 -9
  51. node v17.0/v8.d.ts → node/v8.d.ts +19 -1
  52. node v17.0/vm.d.ts → node/vm.d.ts +5 -3
  53. node v17.0/wasi.d.ts → node/wasi.d.ts +1 -1
  54. node v17.0/worker_threads.d.ts → node/worker_threads.d.ts +2 -5
  55. node v17.0/zlib.d.ts → node/zlib.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
3
3
  * separate module.
4
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/https.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/https.js)
5
5
  */
6
6
  declare module 'https' {
7
7
  import { Duplex } from 'node:stream';
@@ -34,6 +34,16 @@ declare module 'https' {
34
34
  class Server extends tls.Server {
35
35
  constructor(requestListener?: http.RequestListener);
36
36
  constructor(options: ServerOptions, requestListener?: http.RequestListener);
37
+ /**
38
+ * Closes all connections connected to this server.
39
+ * @since v18.2.0
40
+ */
41
+ closeAllConnections(): void;
42
+ /**
43
+ * Closes all connections connected to this server which are not sending a request or waiting for a response.
44
+ * @since v18.2.0
45
+ */
46
+ closeIdleConnections(): void;
37
47
  addListener(event: string, listener: (...args: any[]) => void): this;
38
48
  addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
39
49
  addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this;
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 17.0
1
+ // Type definitions for non-npm package Node.js 18.0
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -40,6 +40,7 @@
40
40
  // NodeJS Contributors <https://github.com/NodeJS>
41
41
  // Linus Unnebäck <https://github.com/LinusU>
42
42
  // wafuwafu13 <https://github.com/wafuwafu13>
43
+ // Matteo Collina <https://github.com/mcollina>
43
44
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
44
45
 
45
46
  /**
@@ -113,6 +114,7 @@
113
114
  /// <reference path="stream/consumers.d.ts" />
114
115
  /// <reference path="stream/web.d.ts" />
115
116
  /// <reference path="string_decoder.d.ts" />
117
+ /// <reference path="test.d.ts" />
116
118
  /// <reference path="timers.d.ts" />
117
119
  /// <reference path="timers/promises.d.ts" />
118
120
  /// <reference path="tls.d.ts" />
@@ -15,7 +15,7 @@
15
15
  * ```js
16
16
  * const inspector = require('inspector');
17
17
  * ```
18
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/inspector.js)
18
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/inspector.js)
19
19
  */
20
20
  declare module 'inspector' {
21
21
  import EventEmitter = require('node:events');
@@ -1688,7 +1688,7 @@ declare module 'inspector' {
1688
1688
  /**
1689
1689
  * Controls how the trace buffer stores data.
1690
1690
  */
1691
- recordMode?: string;
1691
+ recordMode?: string | undefined;
1692
1692
  /**
1693
1693
  * Included category filters.
1694
1694
  */
@@ -1778,12 +1778,6 @@ declare module 'inspector' {
1778
1778
  * @since v8.0.0
1779
1779
  */
1780
1780
  connect(): void;
1781
- /**
1782
- * Connects a session to the main thread inspector back-end. An exception will
1783
- * be thrown if this API was not called on a Worker thread.
1784
- * @since v12.11.0
1785
- */
1786
- connectToMainThread(): void;
1787
1781
  /**
1788
1782
  * Immediately close the session. All pending message callbacks will be called
1789
1783
  * with an error. `session.connect()` will need to be called to be able to send
@@ -2695,7 +2689,7 @@ declare module 'inspector' {
2695
2689
  prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2696
2690
  }
2697
2691
  /**
2698
- * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
2692
+ * Activate inspector on host and port. Equivalent to`node --inspect=[[host:]port]`, but can be done programmatically after node has
2699
2693
  * started.
2700
2694
  *
2701
2695
  * If wait is `true`, will block until a client has connected to the inspect port
@@ -2717,12 +2711,12 @@ declare module 'inspector' {
2717
2711
  * ```console
2718
2712
  * $ node --inspect -p 'inspector.url()'
2719
2713
  * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2720
- * For help see https://nodejs.org/en/docs/inspector
2714
+ * For help, see: https://nodejs.org/en/docs/inspector
2721
2715
  * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2722
2716
  *
2723
2717
  * $ node --inspect=localhost:3000 -p 'inspector.url()'
2724
2718
  * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2725
- * For help see https://nodejs.org/en/docs/inspector
2719
+ * For help, see: https://nodejs.org/en/docs/inspector
2726
2720
  * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2727
2721
  *
2728
2722
  * $ node -p 'inspector.url()'
@@ -2738,7 +2732,10 @@ declare module 'inspector' {
2738
2732
  */
2739
2733
  function waitForDebugger(): void;
2740
2734
  }
2735
+ /**
2736
+ * The inspector module provides an API for interacting with the V8 inspector.
2737
+ */
2741
2738
  declare module 'node:inspector' {
2742
- import EventEmitter = require('inspector');
2743
- export = EventEmitter;
2739
+ import inspector = require('inspector');
2740
+ export = inspector;
2744
2741
  }
File without changes
@@ -10,7 +10,7 @@
10
10
  * ```js
11
11
  * const net = require('net');
12
12
  * ```
13
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/net.js)
13
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/net.js)
14
14
  */
15
15
  declare module 'net' {
16
16
  import * as stream from 'node:stream';
@@ -285,6 +285,11 @@ declare module 'net' {
285
285
  * @since v0.5.10
286
286
  */
287
287
  readonly remotePort?: number | undefined;
288
+ /**
289
+ * The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
290
+ * @since v10.7.0
291
+ */
292
+ readonly timeout?: number | undefined;
288
293
  /**
289
294
  * Half-closes the socket. i.e., it sends a FIN packet. It is possible the
290
295
  * server will still send some data.
@@ -645,7 +650,7 @@ declare module 'net' {
645
650
  *
646
651
  * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to.
647
652
  *
648
- * Here is an example of an TCP echo server which listens for connections
653
+ * Here is an example of a TCP echo server which listens for connections
649
654
  * on port 8124:
650
655
  *
651
656
  * ```js
@@ -724,19 +729,39 @@ declare module 'net' {
724
729
  function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
725
730
  function createConnection(path: string, connectionListener?: () => void): Socket;
726
731
  /**
727
- * Tests if input is an IP address. Returns `0` for invalid strings,
728
- * returns `4` for IP version 4 addresses, and returns `6` for IP version 6
729
- * addresses.
732
+ * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4
733
+ * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`.
734
+ *
735
+ * ```js
736
+ * net.isIP('::1'); // returns 6
737
+ * net.isIP('127.0.0.1'); // returns 4
738
+ * net.isIP('127.000.000.001'); // returns 0
739
+ * net.isIP('127.0.0.1/24'); // returns 0
740
+ * net.isIP('fhqwhgads'); // returns 0
741
+ * ```
730
742
  * @since v0.3.0
731
743
  */
732
744
  function isIP(input: string): number;
733
745
  /**
734
- * Returns `true` if input is a version 4 IP address, otherwise returns `false`.
746
+ * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no
747
+ * leading zeroes. Otherwise, returns `false`.
748
+ *
749
+ * ```js
750
+ * net.isIPv4('127.0.0.1'); // returns true
751
+ * net.isIPv4('127.000.000.001'); // returns false
752
+ * net.isIPv4('127.0.0.1/24'); // returns false
753
+ * net.isIPv4('fhqwhgads'); // returns false
754
+ * ```
735
755
  * @since v0.3.0
736
756
  */
737
757
  function isIPv4(input: string): boolean;
738
758
  /**
739
- * Returns `true` if input is a version 6 IP address, otherwise returns `false`.
759
+ * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`.
760
+ *
761
+ * ```js
762
+ * net.isIPv6('::1'); // returns true
763
+ * net.isIPv6('fhqwhgads'); // returns false
764
+ * ```
740
765
  * @since v0.3.0
741
766
  */
742
767
  function isIPv6(input: string): boolean;
@@ -5,7 +5,7 @@
5
5
  * ```js
6
6
  * const os = require('os');
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/os.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/os.js)
9
9
  */
10
10
  declare module 'os' {
11
11
  interface CpuInfo {
@@ -387,7 +387,7 @@ declare module 'os' {
387
387
  const EOL: string;
388
388
  /**
389
389
  * Returns the operating system CPU architecture for which the Node.js binary was
390
- * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
390
+ * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
391
391
  *
392
392
  * The return value is equivalent to `process.arch`.
393
393
  * @since v0.5.0
@@ -402,8 +402,9 @@ declare module 'os' {
402
402
  */
403
403
  function version(): string;
404
404
  /**
405
- * Returns a string identifying the operating system platform. The value is set
406
- * at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
405
+ * Returns a string identifying the operating system platform for which
406
+ * the Node.js binary was compiled. The value is set at compile time.
407
+ * Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`,`'openbsd'`, `'sunos'`, and `'win32'`.
407
408
  *
408
409
  * The return value is equivalent to `process.platform`.
409
410
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.45",
3
+ "version": "18.0.2",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -204,6 +204,11 @@
204
204
  "name": "wafuwafu13",
205
205
  "url": "https://github.com/wafuwafu13",
206
206
  "githubUsername": "wafuwafu13"
207
+ },
208
+ {
209
+ "name": "Matteo Collina",
210
+ "url": "https://github.com/mcollina",
211
+ "githubUsername": "mcollina"
207
212
  }
208
213
  ],
209
214
  "main": "",
@@ -215,6 +220,6 @@
215
220
  },
216
221
  "scripts": {},
217
222
  "dependencies": {},
218
- "typesPublisherContentHash": "af50fb21a4ee56ffd08ac1a41afbed06689aa44fec9f855368376b13ef1742b6",
223
+ "typesPublisherContentHash": "fc738cc7cabdb53ec5ae23220900a87cbf1c890db6b05a41bbc65481f8ff8600",
219
224
  "typeScriptVersion": "4.0"
220
225
  }
@@ -13,7 +13,7 @@ declare module 'path/win32' {
13
13
  * ```js
14
14
  * const path = require('path');
15
15
  * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/path.js)
16
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/path.js)
17
17
  */
18
18
  declare module 'path' {
19
19
  namespace path {
@@ -26,7 +26,7 @@
26
26
  * performance.measure('A to B', 'A', 'B');
27
27
  * });
28
28
  * ```
29
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/perf_hooks.js)
29
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/perf_hooks.js)
30
30
  */
31
31
  declare module 'perf_hooks' {
32
32
  import { AsyncResource } from 'node:async_hooks';
@@ -270,6 +270,9 @@ declare module 'perf_hooks' {
270
270
  * * }
271
271
  * * ]
272
272
  *
273
+ *
274
+ * performance.clearMarks();
275
+ * performance.clearMeasures();
273
276
  * observer.disconnect();
274
277
  * });
275
278
  * obs.observe({ type: 'mark' });
@@ -317,6 +320,9 @@ declare module 'perf_hooks' {
317
320
  * * ]
318
321
  *
319
322
  * console.log(perfObserverList.getEntriesByName('test', 'measure')); // []
323
+ *
324
+ * performance.clearMarks();
325
+ * performance.clearMeasures();
320
326
  * observer.disconnect();
321
327
  * });
322
328
  * obs.observe({ entryTypes: ['mark', 'measure'] });
@@ -355,6 +361,8 @@ declare module 'perf_hooks' {
355
361
  * * }
356
362
  * * ]
357
363
  *
364
+ * performance.clearMarks();
365
+ * performance.clearMeasures();
358
366
  * observer.disconnect();
359
367
  * });
360
368
  * obs.observe({ type: 'mark' });
@@ -384,7 +392,7 @@ declare module 'perf_hooks' {
384
392
  * } = require('perf_hooks');
385
393
  *
386
394
  * const obs = new PerformanceObserver((list, observer) => {
387
- * // Called three times synchronously. `list` contains one item.
395
+ * // Called once asynchronously. `list` contains three items.
388
396
  * });
389
397
  * obs.observe({ type: 'mark' });
390
398
  *
@@ -49,6 +49,7 @@ declare module 'process' {
49
49
  openssl: string;
50
50
  }
51
51
  type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
52
+ type Architecture = 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 's390' | 's390x' | 'x64';
52
53
  type Signals =
53
54
  | 'SIGABRT'
54
55
  | 'SIGALRM'
@@ -641,7 +642,7 @@ declare module 'process' {
641
642
  * Android).
642
643
  * @since v0.1.31
643
644
  */
644
- getgid(): number;
645
+ getgid?: () => number;
645
646
  /**
646
647
  * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
647
648
  * numeric ID or a group name
@@ -668,7 +669,7 @@ declare module 'process' {
668
669
  * @since v0.1.31
669
670
  * @param id The group name or ID
670
671
  */
671
- setgid(id: number | string): void;
672
+ setgid?: (id: number | string) => void;
672
673
  /**
673
674
  * The `process.getuid()` method returns the numeric user identity of the process.
674
675
  * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
@@ -685,7 +686,7 @@ declare module 'process' {
685
686
  * Android).
686
687
  * @since v0.1.28
687
688
  */
688
- getuid(): number;
689
+ getuid?: () => number;
689
690
  /**
690
691
  * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
691
692
  * numeric ID or a username string.
@@ -711,7 +712,7 @@ declare module 'process' {
711
712
  * This feature is not available in `Worker` threads.
712
713
  * @since v0.1.28
713
714
  */
714
- setuid(id: number | string): void;
715
+ setuid?: (id: number | string) => void;
715
716
  /**
716
717
  * The `process.geteuid()` method returns the numerical effective user identity of
717
718
  * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
@@ -728,7 +729,7 @@ declare module 'process' {
728
729
  * Android).
729
730
  * @since v2.0.0
730
731
  */
731
- geteuid(): number;
732
+ geteuid?: () => number;
732
733
  /**
733
734
  * The `process.seteuid()` method sets the effective user identity of the process.
734
735
  * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
@@ -755,7 +756,7 @@ declare module 'process' {
755
756
  * @since v2.0.0
756
757
  * @param id A user name or ID
757
758
  */
758
- seteuid(id: number | string): void;
759
+ seteuid?: (id: number | string) => void;
759
760
  /**
760
761
  * The `process.getegid()` method returns the numerical effective group identity
761
762
  * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
@@ -772,7 +773,7 @@ declare module 'process' {
772
773
  * Android).
773
774
  * @since v2.0.0
774
775
  */
775
- getegid(): number;
776
+ getegid?: () => number;
776
777
  /**
777
778
  * The `process.setegid()` method sets the effective group identity of the process.
778
779
  * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
@@ -799,7 +800,7 @@ declare module 'process' {
799
800
  * @since v2.0.0
800
801
  * @param id A group name or ID
801
802
  */
802
- setegid(id: number | string): void;
803
+ setegid?: (id: number | string) => void;
803
804
  /**
804
805
  * The `process.getgroups()` method returns an array with the supplementary group
805
806
  * IDs. POSIX leaves it unspecified if the effective group ID is included but
@@ -817,7 +818,7 @@ declare module 'process' {
817
818
  * Android).
818
819
  * @since v0.9.4
819
820
  */
820
- getgroups(): number[];
821
+ getgroups?: () => number[];
821
822
  /**
822
823
  * The `process.setgroups()` method sets the supplementary group IDs for the
823
824
  * Node.js process. This is a privileged operation that requires the Node.js
@@ -843,7 +844,7 @@ declare module 'process' {
843
844
  * This feature is not available in `Worker` threads.
844
845
  * @since v0.9.4
845
846
  */
846
- setgroups(groups: ReadonlyArray<string | number>): void;
847
+ setgroups?: (groups: ReadonlyArray<string | number>) => void;
847
848
  /**
848
849
  * The `process.setUncaughtExceptionCaptureCallback()` function sets a function
849
850
  * that will be invoked when an uncaught exception occurs, which will receive the
@@ -1040,7 +1041,7 @@ declare module 'process' {
1040
1041
  title: string;
1041
1042
  /**
1042
1043
  * The operating system CPU architecture for which the Node.js binary was compiled.
1043
- * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
1044
+ * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
1044
1045
  *
1045
1046
  * ```js
1046
1047
  * import { arch } from 'process';
@@ -1049,10 +1050,10 @@ declare module 'process' {
1049
1050
  * ```
1050
1051
  * @since v0.5.0
1051
1052
  */
1052
- readonly arch: string;
1053
+ readonly arch: Architecture;
1053
1054
  /**
1054
1055
  * The `process.platform` property returns a string identifying the operating
1055
- * system platform on which the Node.js process is running.
1056
+ * system platform for which the Node.js binary was compiled.
1056
1057
  *
1057
1058
  * Currently possible values are:
1058
1059
  *
@@ -24,7 +24,7 @@
24
24
  * made available to developers as a convenience. Fixes or other modifications to
25
25
  * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
26
26
  * @deprecated Since v7.0.0 - Deprecated
27
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/punycode.js)
27
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/punycode.js)
28
28
  */
29
29
  declare module 'punycode' {
30
30
  /**
@@ -9,7 +9,7 @@
9
9
  * The `querystring` API is considered Legacy. While it is still maintained,
10
10
  * new code should use the `URLSearchParams` API instead.
11
11
  * @deprecated Legacy
12
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/querystring.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
13
13
  */
14
14
  declare module 'querystring' {
15
15
  interface StringifyOptions {
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * ```js
19
19
  * import * as readline from 'node:readline/promises';
20
- * import { stdin as input, stdout as output } from 'process';
20
+ * import { stdin as input, stdout as output } from 'node:process';
21
21
  *
22
22
  * const rl = readline.createInterface({ input, output });
23
23
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be
32
32
  * received on the `input` stream.
33
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/readline.js)
33
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/readline.js)
34
34
  */
35
35
  declare module 'readline' {
36
36
  import { Abortable, EventEmitter } from 'node:events';
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const repl = require('repl');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/repl.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/repl.js)
10
10
  */
11
11
  declare module 'repl' {
12
12
  import { Interface, Completer, AsyncCompleter } from 'node:readline';
@@ -277,7 +277,7 @@ declare module 'repl' {
277
277
  * Goodbye!
278
278
  * ```
279
279
  * @since v0.3.0
280
- * @param keyword The command keyword (*without* a leading `.` character).
280
+ * @param keyword The command keyword (_without_ a leading `.` character).
281
281
  * @param cmd The function to invoke when the command is processed.
282
282
  */
283
283
  defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
File without changes
File without changes
File without changes