@types/node 24.13.6 → 24.19.1

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 (75) hide show
  1. {node v24.13 → node v24.19}/README.md +1 -1
  2. {node v24.13 → node v24.19}/async_hooks.d.ts +18 -22
  3. {node v24.13 → node v24.19}/buffer.buffer.d.ts +10 -5
  4. {node v24.13 → node v24.19}/buffer.d.ts +7 -0
  5. {node v24.13 → node v24.19}/child_process.d.ts +5 -1
  6. {node v24.13 → node v24.19}/crypto.d.ts +114 -47
  7. {node v24.13 → node v24.19}/dgram.d.ts +119 -4
  8. {node v24.13 → node v24.19}/dns/promises.d.ts +5 -5
  9. {node v24.13 → node v24.19}/dns.d.ts +6 -6
  10. {node v24.13 → node v24.19}/events.d.ts +13 -22
  11. {node v24.13 → node v24.19}/fs/promises.d.ts +79 -66
  12. {node v24.13 → node v24.19}/fs.d.ts +153 -90
  13. {node v24.13 → node v24.19}/http.d.ts +94 -2
  14. {node v24.13 → node v24.19}/http2.d.ts +65 -18
  15. {node v24.13 → node v24.19}/inspector.d.ts +47 -1
  16. {node v24.13 → node v24.19}/inspector.generated.d.ts +167 -0
  17. {node v24.13 → node v24.19}/module.d.ts +1 -0
  18. {node v24.13 → node v24.19}/net.d.ts +139 -15
  19. {node v24.13 → node v24.19}/os.d.ts +30 -30
  20. {node v24.13 → node v24.19}/package.json +3 -3
  21. {node v24.13 → node v24.19}/perf_hooks.d.ts +31 -19
  22. {node v24.13 → node v24.19}/process.d.ts +42 -43
  23. {node v24.13 → node v24.19}/sqlite.d.ts +153 -11
  24. {node v24.13 → node v24.19}/stream/consumers.d.ts +7 -0
  25. {node v24.13 → node v24.19}/stream/web.d.ts +19 -0
  26. {node v24.13 → node v24.19}/stream.d.ts +2 -1
  27. {node v24.13 → node v24.19}/test.d.ts +320 -13
  28. {node v24.13 → node v24.19}/tls.d.ts +50 -15
  29. {node v24.13 → node v24.19}/ts5.6/buffer.buffer.d.ts +5 -0
  30. {node v24.13 → node v24.19}/tty.d.ts +4 -3
  31. {node v24.13 → node v24.19}/url.d.ts +27 -3
  32. {node v24.13 → node v24.19}/util.d.ts +42 -2
  33. {node v24.13 → node v24.19}/v8.d.ts +51 -23
  34. {node v24.13 → node v24.19}/vm.d.ts +52 -87
  35. {node v24.13 → node v24.19}/zlib.d.ts +23 -0
  36. {node v24.13 → node v24.19}/LICENSE +0 -0
  37. {node v24.13 → node v24.19}/assert/strict.d.ts +0 -0
  38. {node v24.13 → node v24.19}/assert.d.ts +0 -0
  39. {node v24.13 → node v24.19}/cluster.d.ts +0 -0
  40. {node v24.13 → node v24.19}/compatibility/iterators.d.ts +0 -0
  41. {node v24.13 → node v24.19}/console.d.ts +0 -0
  42. {node v24.13 → node v24.19}/constants.d.ts +0 -0
  43. {node v24.13 → node v24.19}/diagnostics_channel.d.ts +0 -0
  44. {node v24.13 → node v24.19}/domain.d.ts +0 -0
  45. {node v24.13 → node v24.19}/globals.d.ts +0 -0
  46. {node v24.13 → node v24.19}/globals.typedarray.d.ts +0 -0
  47. {node v24.13 → node v24.19}/https.d.ts +0 -0
  48. {node v24.13 → node v24.19}/index.d.ts +0 -0
  49. {node v24.13 → node v24.19}/path.d.ts +0 -0
  50. {node v24.13 → node v24.19}/punycode.d.ts +0 -0
  51. {node v24.13 → node v24.19}/querystring.d.ts +0 -0
  52. {node v24.13 → node v24.19}/readline/promises.d.ts +0 -0
  53. {node v24.13 → node v24.19}/readline.d.ts +0 -0
  54. {node v24.13 → node v24.19}/repl.d.ts +0 -0
  55. {node v24.13 → node v24.19}/sea.d.ts +0 -0
  56. {node v24.13 → node v24.19}/stream/promises.d.ts +0 -0
  57. {node v24.13 → node v24.19}/string_decoder.d.ts +0 -0
  58. {node v24.13 → node v24.19}/timers/promises.d.ts +0 -0
  59. {node v24.13 → node v24.19}/timers.d.ts +0 -0
  60. {node v24.13 → node v24.19}/trace_events.d.ts +0 -0
  61. {node v24.13 → node v24.19}/ts5.6/compatibility/float16array.d.ts +0 -0
  62. {node v24.13 → node v24.19}/ts5.6/globals.typedarray.d.ts +0 -0
  63. {node v24.13 → node v24.19}/ts5.6/index.d.ts +0 -0
  64. {node v24.13 → node v24.19}/ts5.7/compatibility/float16array.d.ts +0 -0
  65. {node v24.13 → node v24.19}/ts5.7/index.d.ts +0 -0
  66. {node v24.13 → node v24.19}/wasi.d.ts +0 -0
  67. {node v24.13 → node v24.19}/web-globals/abortcontroller.d.ts +0 -0
  68. {node v24.13 → node v24.19}/web-globals/crypto.d.ts +0 -0
  69. {node v24.13 → node v24.19}/web-globals/domexception.d.ts +0 -0
  70. {node v24.13 → node v24.19}/web-globals/events.d.ts +0 -0
  71. {node v24.13 → node v24.19}/web-globals/fetch.d.ts +0 -0
  72. {node v24.13 → node v24.19}/web-globals/navigator.d.ts +0 -0
  73. {node v24.13 → node v24.19}/web-globals/storage.d.ts +0 -0
  74. {node v24.13 → node v24.19}/web-globals/streams.d.ts +0 -0
  75. {node v24.13 → node v24.19}/worker_threads.d.ts +0 -0
@@ -38,6 +38,8 @@ declare module "net" {
38
38
  keepAlive?: boolean | undefined;
39
39
  keepAliveInitialDelay?: number | undefined;
40
40
  blockList?: BlockList | undefined;
41
+ typeOfService?: number | undefined;
42
+ handle?: BoundSocket | undefined;
41
43
  }
42
44
  interface OnReadOpts {
43
45
  buffer: Uint8Array | (() => Uint8Array);
@@ -70,6 +72,12 @@ declare module "net" {
70
72
  }
71
73
  type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
72
74
  type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
75
+ interface SetKeepAliveOptions {
76
+ enable?: boolean | undefined;
77
+ initialDelay?: number | undefined;
78
+ interval?: number | undefined;
79
+ count?: number | undefined;
80
+ }
73
81
  /**
74
82
  * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
75
83
  * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
@@ -201,25 +209,58 @@ declare module "net" {
201
209
  */
202
210
  setNoDelay(noDelay?: boolean): this;
203
211
  /**
204
- * Enable/disable keep-alive functionality, and optionally set the initial
205
- * delay before the first keepalive probe is sent on an idle socket.
212
+ * Configure keep-alive using an options object. See `socket.setKeepAlive()`
213
+ * for a description of each property.
206
214
  *
207
- * Set `initialDelay` (in milliseconds) to set the delay between the last
208
- * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default
209
- * (or previous) setting.
215
+ * ```js
216
+ * socket.setKeepAlive({ enable: true, initialDelay: 1000, interval: 1000, count: 10 });
217
+ * ```
218
+ * @since v24.19.0
219
+ * @returns The socket itself.
220
+ */
221
+ setKeepAlive(options: SetKeepAliveOptions): this;
222
+ /**
223
+ * Configure keep-alive using positional arguments. See
224
+ * `socket.setKeepAlive()` for a description of each argument.
225
+ * @since v0.1.92
226
+ * @param enable **Default:** `false`
227
+ * @param initialDelay **Default:** `0`
228
+ * @param interval **Default:** `1000`
229
+ * @param count **Default:** `10`
230
+ * @returns The socket itself.
231
+ */
232
+ setKeepAlive(enable?: boolean, initialDelay?: number, interval?: number, count?: number): this;
233
+ /**
234
+ * Returns the current Type of Service (TOS) field for IPv4 packets or Traffic
235
+ * Class for IPv6 packets for this socket.
210
236
  *
211
- * Enabling the keep-alive functionality will set the following socket options:
237
+ * `setTypeOfService()` may be called before the socket is connected; the value
238
+ * will be cached and applied when the socket establishes a connection.
239
+ * `getTypeOfService()` will return the currently set value even before connection.
212
240
  *
213
- * * `SO_KEEPALIVE=1`
214
- * * `TCP_KEEPIDLE=initialDelay`
215
- * * `TCP_KEEPCNT=10`
216
- * * `TCP_KEEPINTVL=1`
217
- * @since v0.1.92
218
- * @param [enable=false]
219
- * @param [initialDelay=0]
220
- * @return The socket itself.
241
+ * On some platforms (e.g., Linux), certain TOS/ECN bits may be masked or ignored,
242
+ * and behavior can differ between IPv4 and IPv6 or dual-stack sockets. Callers
243
+ * should verify platform-specific semantics.
244
+ * @since v24.15.0
245
+ * @returns The current TOS value.
246
+ */
247
+ getTypeOfService(): number;
248
+ /**
249
+ * Sets the Type of Service (TOS) field for IPv4 packets or Traffic Class for IPv6
250
+ * Packets sent from this socket. This can be used to prioritize network traffic.
251
+ *
252
+ * `setTypeOfService()` may be called before the socket is connected; the value
253
+ * will be cached and applied when the socket establishes a connection.
254
+ * `getTypeOfService()` will return the currently set value even before connection.
255
+ *
256
+ * On some platforms (e.g., Linux), certain TOS/ECN bits may be masked or ignored,
257
+ * and behavior can differ between IPv4 and IPv6 or dual-stack sockets. Callers
258
+ * should verify platform-specific semantics.
259
+ * @since v24.15.0
260
+ * @param tos The TOS value to set (0-255).
261
+ * @returns The socket itself.
221
262
  */
222
- setKeepAlive(enable?: boolean, initialDelay?: number): this;
263
+ setTypeOfService(tos: number): this;
223
264
  /**
224
265
  * Returns the bound `address`, the address `family` name and `port` of the
225
266
  * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
@@ -509,9 +550,92 @@ declare module "net" {
509
550
  prependOnceListener(event: "ready", listener: () => void): this;
510
551
  prependOnceListener(event: "timeout", listener: () => void): this;
511
552
  }
553
+ interface BoundSocketOptions {
554
+ /**
555
+ * Local address to bind. Must be a numeric IP literal; no DNS
556
+ * resolution is performed. **Default:** `'0.0.0.0'`, or `'::'` when
557
+ * `ipv6Only` is `true`.
558
+ */
559
+ host?: string | undefined;
560
+ /**
561
+ * Local port. `0` requests an OS-assigned ephemeral port.
562
+ * **Default:** `0`.
563
+ */
564
+ port?: number | undefined;
565
+ /**
566
+ * Sets `IPV6_V6ONLY`, disabling dual-stack support so the
567
+ * socket binds IPv6 only. Only meaningful for IPv6 binds. **Default:**
568
+ * `false`.
569
+ */
570
+ ipv6Only?: boolean | undefined;
571
+ /**
572
+ * Sets `SO_REUSEPORT`, allowing multiple sockets to bind
573
+ * the same address and port for kernel-level load balancing. Support is
574
+ * platform-dependent. **Default:** `false`.
575
+ */
576
+ reusePort?: boolean | undefined;
577
+ }
578
+ /**
579
+ * Allows for the synchronous creation of a pre-bound socket, that can be passed
580
+ * to `listen()` or `new net.Socket()` later on. For `listen()` this enables
581
+ * synchronous port reservation, while for `new net.Socket()`, it allows control
582
+ * over the local egress port/IP, via `bind(2)` semantics.
583
+ *
584
+ * Adoption transfers ownership of the socket; afterwards `address()` and `close()`
585
+ * throw `ERR_SOCKET_HANDLE_ADOPTED`. A handle that is never adopted must be
586
+ * closed to avoid leaking the socket.
587
+ *
588
+ * ```js
589
+ * import net from 'node:net';
590
+ *
591
+ * const bound = new net.BoundSocket();
592
+ * const { port } = bound.address();
593
+ * console.log(`Reserved port ${port} for server`);
594
+ *
595
+ * const server = net.createServer();
596
+ * server.listen(bound); // Adopt as a server, or pass to new net.Socket() instead.
597
+ * ```
598
+ * @since v24.19.0
599
+ */
600
+ class BoundSocket {
601
+ /**
602
+ * @since v26.4.0
603
+ */
604
+ constructor(options?: BoundSocketOptions);
605
+ /**
606
+ * Returns the bound local address. When bound with `port: 0`, `port` is the
607
+ * OS-assigned ephemeral port.
608
+ * @since v24.19.0
609
+ * @returns An object with `address`, `family`, and `port` properties,
610
+ * as `server.address()` returns.
611
+ */
612
+ address(): AddressInfo;
613
+ /**
614
+ * Returns the file descriptor of the bound socket. Ownership remains with the
615
+ * `BoundSocket`, so the descriptor must not be closed by the caller. The
616
+ * descriptor is only available before the handle is adopted; afterwards it belongs
617
+ * to the adopting `net.Server` or `net.Socket` and `fd()` throws
618
+ * `ERR_SOCKET_HANDLE_ADOPTED`.
619
+ * @since v24.19.0
620
+ * @returns The underlying OS file descriptor, or `-1` on platforms
621
+ * that do not expose one for sockets (such as Windows).
622
+ */
623
+ fd(): number;
624
+ /**
625
+ * Releases the bound socket. Only needed when the handle is never adopted.
626
+ * @since v24.19.0
627
+ */
628
+ close(): void;
629
+ /**
630
+ * Closes the handle if it has not been adopted or closed; otherwise a no-op.
631
+ * @since v24.19.0
632
+ */
633
+ [Symbol.dispose](): void;
634
+ }
512
635
  interface ListenOptions extends Abortable {
513
636
  backlog?: number | undefined;
514
637
  exclusive?: boolean | undefined;
638
+ handle?: BoundSocket | undefined;
515
639
  host?: string | undefined;
516
640
  /**
517
641
  * @default false
@@ -131,7 +131,7 @@ declare module "os" {
131
131
  * irq: 20,
132
132
  * },
133
133
  * },
134
- * ]
134
+ * ];
135
135
  * ```
136
136
  *
137
137
  * `nice` values are POSIX-only. On Windows, the `nice` values of all processors
@@ -176,44 +176,44 @@ declare module "os" {
176
176
  *
177
177
  * The properties available on the assigned network address object include:
178
178
  *
179
- * ```js
179
+ * ```json
180
180
  * {
181
- * lo: [
181
+ * "lo": [
182
182
  * {
183
- * address: '127.0.0.1',
184
- * netmask: '255.0.0.0',
185
- * family: 'IPv4',
186
- * mac: '00:00:00:00:00:00',
187
- * internal: true,
188
- * cidr: '127.0.0.1/8'
183
+ * "address:": "127.0.0.1",
184
+ * "netmask:": "255.0.0.0",
185
+ * "family:": "IPv4",
186
+ * "mac:": "00:00:00:00:00:00",
187
+ * "internal:": true,
188
+ * "cidr:": "127.0.0.1/8"
189
189
  * },
190
190
  * {
191
- * address: '::1',
192
- * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
193
- * family: 'IPv6',
194
- * mac: '00:00:00:00:00:00',
195
- * scopeid: 0,
196
- * internal: true,
197
- * cidr: '::1/128'
191
+ * "address:": "::1",
192
+ * "netmask:": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
193
+ * "family:": "IPv6",
194
+ * "mac:": "00:00:00:00:00:00",
195
+ * "scopeid:": 0,
196
+ * "internal:": true,
197
+ * "cidr:": "::1/128"
198
198
  * }
199
199
  * ],
200
- * eth0: [
200
+ * "eth0": [
201
201
  * {
202
- * address: '192.168.1.108',
203
- * netmask: '255.255.255.0',
204
- * family: 'IPv4',
205
- * mac: '01:02:03:0a:0b:0c',
206
- * internal: false,
207
- * cidr: '192.168.1.108/24'
202
+ * "address:": "192.168.1.108",
203
+ * "netmask:": "255.255.255.0",
204
+ * "family:": "IPv4",
205
+ * "mac:": "01:02:03:0a:0b:0c",
206
+ * "internal:": false,
207
+ * "cidr:": "192.168.1.108/24"
208
208
  * },
209
209
  * {
210
- * address: 'fe80::a00:27ff:fe4e:66a1',
211
- * netmask: 'ffff:ffff:ffff:ffff::',
212
- * family: 'IPv6',
213
- * mac: '01:02:03:0a:0b:0c',
214
- * scopeid: 1,
215
- * internal: false,
216
- * cidr: 'fe80::a00:27ff:fe4e:66a1/64'
210
+ * "address:": "fe80::a00:27ff:fe4e:66a1",
211
+ * "netmask:": "ffff:ffff:ffff:ffff::",
212
+ * "family:": "IPv6",
213
+ * "mac:": "01:02:03:0a:0b:0c",
214
+ * "scopeid:": 1,
215
+ * "internal:": false,
216
+ * "cidr:": "fe80::a00:27ff:fe4e:66a1/64"
217
217
  * }
218
218
  * ]
219
219
  * }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.13.6",
3
+ "version": "24.19.1",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -132,9 +132,9 @@
132
132
  },
133
133
  "scripts": {},
134
134
  "dependencies": {
135
- "undici-types": "~7.18.0"
135
+ "undici-types": ">=7.24.0 <7.24.7"
136
136
  },
137
137
  "peerDependencies": {},
138
- "typesPublisherContentHash": "f7abb6ff9bff6be903c0a2b1cef90130ac2012f63be0b05e32126cb701326609",
138
+ "typesPublisherContentHash": "f9cc92dfece84656a7e8fe41396fdda50c6dd4c8e72e2dc28e65cc2c283a78f9",
139
139
  "typeScriptVersion": "5.6"
140
140
  }
@@ -670,6 +670,7 @@ declare module "perf_hooks" {
670
670
  namespace constants {
671
671
  const NODE_PERFORMANCE_GC_MAJOR: number;
672
672
  const NODE_PERFORMANCE_GC_MINOR: number;
673
+ const NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP: number;
673
674
  const NODE_PERFORMANCE_GC_INCREMENTAL: number;
674
675
  const NODE_PERFORMANCE_GC_WEAKCB: number;
675
676
  const NODE_PERFORMANCE_GC_FLAGS_NO: number;
@@ -683,9 +684,14 @@ declare module "perf_hooks" {
683
684
  const performance: Performance;
684
685
  interface EventLoopMonitorOptions {
685
686
  /**
686
- * The sampling rate in milliseconds.
687
- * Must be greater than zero.
688
- * @default 10
687
+ * When `true`, samples are taken once per
688
+ * event loop iteration. **Default:** `false`.
689
+ */
690
+ samplePerIteration?: boolean | undefined;
691
+ /**
692
+ * The sampling rate in milliseconds for interval-based
693
+ * sampling. Must be greater than zero. This option is ignored when
694
+ * `samplePerIteration` is `true`. **Default:** `10`.
689
695
  */
690
696
  resolution?: number | undefined;
691
697
  }
@@ -769,21 +775,25 @@ declare module "perf_hooks" {
769
775
  */
770
776
  readonly stddev: number;
771
777
  }
772
- interface IntervalHistogram extends Histogram {
778
+ /**
779
+ * A `Histogram` that records event loop delay, returned by
780
+ * `perf_hooks.monitorEventLoopDelay()`.
781
+ */
782
+ interface ELDHistogram extends Histogram {
773
783
  /**
774
- * Enables the update interval timer. Returns `true` if the timer was
775
- * started, `false` if it was already started.
784
+ * Disables event loop delay sampling. Returns `true` if sampling was
785
+ * stopped, `false` if it was already stopped.
776
786
  * @since v11.10.0
777
787
  */
778
- enable(): boolean;
788
+ disable(): boolean;
779
789
  /**
780
- * Disables the update interval timer. Returns `true` if the timer was
781
- * stopped, `false` if it was already stopped.
790
+ * Enables event loop delay sampling. Returns `true` if sampling was
791
+ * started, `false` if it was already started.
782
792
  * @since v11.10.0
783
793
  */
784
- disable(): boolean;
794
+ enable(): boolean;
785
795
  /**
786
- * Disables the update interval timer when the histogram is disposed.
796
+ * Disables event loop delay sampling when the histogram is disposed.
787
797
  *
788
798
  * ```js
789
799
  * const { monitorEventLoopDelay } = require('node:perf_hooks');
@@ -895,14 +905,16 @@ declare module "perf_hooks" {
895
905
  /**
896
906
  * _This property is an extension by Node.js. It is not available in Web browsers._
897
907
  *
898
- * Creates an `IntervalHistogram` object that samples and reports the event loop
899
- * delay over time. The delays will be reported in nanoseconds.
908
+ * Creates a histogram object that samples and reports the event loop delay over
909
+ * time. The delays will be reported in nanoseconds.
900
910
  *
901
- * Using a timer to detect approximate event loop delay works because the
902
- * execution of timers is tied specifically to the lifecycle of the libuv
903
- * event loop. That is, a delay in the loop will cause a delay in the execution
904
- * of the timer, and those delays are specifically what this API is intended to
905
- * detect.
911
+ * By default, the histogram is updated by a timer using the configured
912
+ * `resolution`. When `samplePerIteration` is `true`, samples are taken once per
913
+ * event loop iteration using `uv_prepare_t` and `uv_check_t` hooks. In that mode,
914
+ * the histogram does not keep the loop alive or force additional iterations when
915
+ * the application is idle.
916
+ * The two sampling modes produce significantly different results and should not
917
+ * be compared directly.
906
918
  *
907
919
  * ```js
908
920
  * import { monitorEventLoopDelay } from 'node:perf_hooks';
@@ -920,7 +932,7 @@ declare module "perf_hooks" {
920
932
  * ```
921
933
  * @since v11.10.0
922
934
  */
923
- function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
935
+ function monitorEventLoopDelay(options?: EventLoopMonitorOptions): ELDHistogram;
924
936
  /**
925
937
  * _This property is an extension by Node.js. It is not available in Web browsers._
926
938
  *
@@ -668,14 +668,14 @@ declare module "process" {
668
668
  *
669
669
  * Results in `process.execArgv`:
670
670
  *
671
- * ```js
671
+ * ```json
672
672
  * ["--icu-data-dir=./foo", "--require", "./bar.js"]
673
673
  * ```
674
674
  *
675
675
  * And `process.argv`:
676
676
  *
677
- * ```js
678
- * ['/usr/local/bin/node', 'script.js', '--version']
677
+ * ```json
678
+ * ["/usr/local/bin/node", "script.js", "--version"]
679
679
  * ```
680
680
  *
681
681
  * Refer to `Worker constructor` for the detailed behavior of worker
@@ -687,8 +687,8 @@ declare module "process" {
687
687
  * The `process.execPath` property returns the absolute pathname of the executable
688
688
  * that started the Node.js process. Symbolic links, if any, are resolved.
689
689
  *
690
- * ```js
691
- * '/usr/local/bin/node'
690
+ * ```json
691
+ * "/usr/local/bin/node"
692
692
  * ```
693
693
  * @since v0.1.100
694
694
  */
@@ -849,18 +849,18 @@ declare module "process" {
849
849
  *
850
850
  * An example of this object looks like:
851
851
  *
852
- * ```js
852
+ * ```json
853
853
  * {
854
- * TERM: 'xterm-256color',
855
- * SHELL: '/usr/local/bin/bash',
856
- * USER: 'maciej',
857
- * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
858
- * PWD: '/Users/maciej',
859
- * EDITOR: 'vim',
860
- * SHLVL: '1',
861
- * HOME: '/Users/maciej',
862
- * LOGNAME: 'maciej',
863
- * _: '/usr/local/bin/node'
854
+ * "TERM": "xterm-256color",
855
+ * "SHELL": "/usr/local/bin/bash",
856
+ * "USER": "maciej",
857
+ * "PATH": "~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin",
858
+ * "PWD": "/Users/maciej",
859
+ * "EDITOR": "vim",
860
+ * "SHLVL": "1",
861
+ * "HOME": "/Users/maciej",
862
+ * "LOGNAME": "maciej",
863
+ * "_": "/usr/local/bin/node"
864
864
  * }
865
865
  * ```
866
866
  *
@@ -1389,29 +1389,28 @@ declare module "process" {
1389
1389
  *
1390
1390
  * An example of the possible output looks like:
1391
1391
  *
1392
- * ```js
1392
+ * ```json
1393
1393
  * {
1394
- * target_defaults:
1395
- * { cflags: [],
1396
- * default_configuration: 'Release',
1397
- * defines: [],
1398
- * include_dirs: [],
1399
- * libraries: [] },
1400
- * variables:
1394
+ * "target_defaults":
1395
+ * { "cflags": [],
1396
+ * "default_configuration": "Release",
1397
+ * "defines": [],
1398
+ * "include_dirs": [],
1399
+ * "libraries": [] },
1400
+ * "variables":
1401
1401
  * {
1402
- * host_arch: 'x64',
1403
- * napi_build_version: 5,
1404
- * node_install_npm: 'true',
1405
- * node_prefix: '',
1406
- * node_shared_cares: 'false',
1407
- * node_shared_http_parser: 'false',
1408
- * node_shared_libuv: 'false',
1409
- * node_shared_zlib: 'false',
1410
- * node_use_openssl: 'true',
1411
- * node_shared_openssl: 'false',
1412
- * strict_aliasing: 'true',
1413
- * target_arch: 'x64',
1414
- * v8_use_snapshot: 1
1402
+ * "host_arch": "x64",
1403
+ * "napi_build_version": 5,
1404
+ * "node_install_npm": "true",
1405
+ * "node_prefix": "",
1406
+ * "node_shared_cares": "false",
1407
+ * "node_shared_http_parser": "false",
1408
+ * "node_shared_libuv": "false",
1409
+ * "node_shared_zlib": "false",
1410
+ * "node_use_openssl": "true",
1411
+ * "node_shared_openssl": "false",
1412
+ * "target_arch": "x64",
1413
+ * "v8_use_snapshot": 1
1415
1414
  * }
1416
1415
  * }
1417
1416
  * ```
@@ -1725,13 +1724,13 @@ declare module "process" {
1725
1724
  *
1726
1725
  * `process.release` contains the following properties:
1727
1726
  *
1728
- * ```js
1727
+ * ```json
1729
1728
  * {
1730
- * name: 'node',
1731
- * lts: 'Hydrogen',
1732
- * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz',
1733
- * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz',
1734
- * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib'
1729
+ * "name": "node",
1730
+ * "lts": "Hydrogen",
1731
+ * "sourceUrl": "https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz",
1732
+ * "headersUrl": "https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz",
1733
+ * "libUrl": "https://nodejs.org/download/release/v18.12.0/win-x64/node.lib"
1735
1734
  * }
1736
1735
  * ```
1737
1736
  *