@idlebox/stripe-node-types 24.0.14 → 24.0.15

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 (85) hide show
  1. package/README.md +1 -1
  2. package/assert/strict.d.ts +98 -1
  3. package/assert.d.ts +147 -248
  4. package/async_hooks.d.ts +5 -5
  5. package/buffer.buffer.d.ts +9 -6
  6. package/buffer.d.ts +49 -169
  7. package/child_process.d.ts +102 -223
  8. package/cluster.d.ts +236 -329
  9. package/console.d.ts +45 -346
  10. package/constants.d.ts +0 -1
  11. package/crypto.d.ts +698 -1149
  12. package/dgram.d.ts +15 -50
  13. package/diagnostics_channel.d.ts +1 -3
  14. package/dns.d.ts +135 -131
  15. package/domain.d.ts +10 -14
  16. package/events.d.ts +846 -722
  17. package/fs/promises.d.ts +102 -53
  18. package/fs.d.ts +714 -484
  19. package/globals.d.ts +130 -347
  20. package/globals.typedarray.d.ts +79 -0
  21. package/http.d.ts +343 -246
  22. package/http2.d.ts +563 -711
  23. package/https.d.ts +70 -216
  24. package/index.d.ts +24 -3
  25. package/inspector/promises.d.ts +54 -0
  26. package/inspector.d.ts +167 -3938
  27. package/inspector.generated.d.ts +4242 -0
  28. package/module.d.ts +45 -95
  29. package/net.d.ts +87 -186
  30. package/os.d.ts +17 -6
  31. package/package.json +3 -8
  32. package/path/posix.d.ts +20 -0
  33. package/path/win32.d.ts +20 -0
  34. package/path.d.ts +117 -122
  35. package/perf_hooks.d.ts +295 -644
  36. package/process.d.ts +177 -138
  37. package/punycode.d.ts +2 -2
  38. package/querystring.d.ts +1 -1
  39. package/quic.d.ts +926 -0
  40. package/readline/promises.d.ts +1 -1
  41. package/readline.d.ts +65 -118
  42. package/repl.d.ts +83 -96
  43. package/sea.d.ts +10 -1
  44. package/sqlite.d.ts +262 -13
  45. package/stream/consumers.d.ts +7 -7
  46. package/stream/promises.d.ts +133 -12
  47. package/stream/web.d.ts +173 -495
  48. package/stream.d.ts +593 -490
  49. package/string_decoder.d.ts +3 -3
  50. package/test/reporters.d.ts +112 -0
  51. package/test.d.ts +223 -199
  52. package/timers/promises.d.ts +1 -1
  53. package/timers.d.ts +1 -129
  54. package/tls.d.ts +148 -163
  55. package/trace_events.d.ts +6 -6
  56. package/ts5.6/buffer.buffer.d.ts +10 -8
  57. package/ts5.6/globals.typedarray.d.ts +16 -0
  58. package/ts5.6/index.d.ts +24 -3
  59. package/ts5.7/index.d.ts +24 -3
  60. package/tty.d.ts +55 -13
  61. package/url.d.ts +92 -587
  62. package/util/types.d.ts +571 -0
  63. package/util.d.ts +143 -792
  64. package/v8.d.ts +67 -7
  65. package/vm.d.ts +252 -108
  66. package/wasi.d.ts +23 -2
  67. package/web-globals/abortcontroller.d.ts +75 -0
  68. package/web-globals/blob.d.ts +39 -0
  69. package/{ts5.1/compatibility/disposable.d.ts → web-globals/console.d.ts} +6 -9
  70. package/web-globals/crypto.d.ts +55 -0
  71. package/web-globals/domexception.d.ts +84 -0
  72. package/web-globals/encoding.d.ts +27 -0
  73. package/{dom-events.d.ts → web-globals/events.d.ts} +57 -50
  74. package/web-globals/fetch.d.ts +70 -0
  75. package/web-globals/importmeta.d.ts +29 -0
  76. package/web-globals/messaging.d.ts +39 -0
  77. package/web-globals/navigator.d.ts +41 -0
  78. package/web-globals/performance.d.ts +61 -0
  79. package/web-globals/storage.d.ts +40 -0
  80. package/web-globals/streams.d.ts +131 -0
  81. package/web-globals/timers.d.ts +60 -0
  82. package/web-globals/url.d.ts +40 -0
  83. package/worker_threads.d.ts +291 -349
  84. package/zlib.d.ts +44 -94
  85. package/ts5.1/index.d.ts +0 -115
package/process.d.ts CHANGED
@@ -15,9 +15,11 @@
15
15
 
16
16
 
17
17
  declare module "node:process" {
18
+ import { Control, MessageOptions, SendHandle } from 'node:child_process';
19
+ import { InternalEventEmitter } from 'node:events';
20
+ import { PathLike } from '_not-use-node-type_fs';
18
21
  import * as tty from 'node:tty';
19
22
  import { Worker } from 'node:worker_threads';
20
-
21
23
  interface BuiltInModule {
22
24
  "node:assert": typeof import('node:assert');
23
25
  "node:assert/strict": typeof import('node:assert/strict');
@@ -51,6 +53,7 @@ declare module "node:process" {
51
53
  "node:process": typeof import('node:process');
52
54
  "node:punycode": typeof import('node:punycode');
53
55
  "node:querystring": typeof import('node:querystring');
56
+ "node:quic": typeof import('node:quic');
54
57
  "node:readline": typeof import('_not-use-node-type_readline');
55
58
  "node:readline/promises": typeof import('node:readline/promises');
56
59
  "node:repl": typeof import('node:repl');
@@ -70,7 +73,6 @@ declare module "node:process" {
70
73
  "node:tty": typeof import('node:tty');
71
74
  "node:url": typeof import('node:url');
72
75
  "node:util": typeof import('node:util');
73
- "node:sys": typeof import('node:util');
74
76
  "node:util/types": typeof import('node:util/types');
75
77
  "node:v8": typeof import('node:v8');
76
78
  "node:vm": typeof import('node:vm');
@@ -78,8 +80,28 @@ declare module "node:process" {
78
80
  "node:worker_threads": typeof import('node:worker_threads');
79
81
  "node:zlib": typeof import('node:zlib');
80
82
  }
83
+ type SignalsEventMap = { [S in NodeJS.Signals]: [signal: S] };
84
+ interface ProcessEventMap extends SignalsEventMap {
85
+ "beforeExit": [code: number];
86
+ "disconnect": [];
87
+ "exit": [code: number];
88
+ "message": [
89
+ message: object | boolean | number | string | null,
90
+ sendHandle: SendHandle | undefined,
91
+ ];
92
+ "rejectionHandled": [promise: Promise<unknown>];
93
+ "uncaughtException": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
94
+ "uncaughtExceptionMonitor": [error: Error, origin: NodeJS.UncaughtExceptionOrigin];
95
+ "unhandledRejection": [reason: unknown, promise: Promise<unknown>];
96
+ "warning": [warning: Error];
97
+ "worker": [worker: Worker];
98
+ "workerMessage": [value: any, source: number];
99
+ }
81
100
  global {
82
101
  var process: NodeJS.Process;
102
+ namespace process {
103
+ export { ProcessEventMap };
104
+ }
83
105
  namespace NodeJS {
84
106
  // this namespace merge is here because these are specifically used
85
107
  // as the type for process.stdin, process.stdout, and process.stderr.
@@ -156,7 +178,7 @@ declare module "node:process" {
156
178
  readonly ipv6: boolean;
157
179
  /**
158
180
  * A boolean value that is `true` if the current Node.js build supports
159
- * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v24.x/api/modules.md#loading-ecmascript-modules-using-require).
181
+ * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v25.x/api/modules.md#loading-ecmascript-modules-using-require).
160
182
  * @since v22.10.0
161
183
  */
162
184
  readonly require_module: boolean;
@@ -280,26 +302,129 @@ declare module "node:process" {
280
302
  | "SIGLOST"
281
303
  | "SIGINFO";
282
304
  type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
283
- type MultipleResolveType = "resolve" | "reject";
284
- type BeforeExitListener = (code: number) => void;
285
- type DisconnectListener = () => void;
286
- type ExitListener = (code: number) => void;
287
- type RejectionHandledListener = (promise: Promise<unknown>) => void;
288
- type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
289
305
  /**
290
- * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
291
- * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
306
+ * @deprecated Global listener types will be removed in a future version.
307
+ * Callbacks passed directly to `process`'s EventEmitter methods
308
+ * have their parameter types inferred automatically.
309
+ *
310
+ * `process` event types are also available via `ProcessEventMap`:
311
+ *
312
+ * ```ts
313
+ * import type { ProcessEventMap } from 'node:process';
314
+ * const listener = (...args: ProcessEventMap['beforeExit']) => { ... };
315
+ * ```
316
+ */
317
+ type BeforeExitListener = (...args: ProcessEventMap["beforeExit"]) => void;
318
+ /**
319
+ * @deprecated Global listener types will be removed in a future version.
320
+ * Callbacks passed directly to `process`'s EventEmitter methods
321
+ * have their parameter types inferred automatically.
322
+ *
323
+ * `process` event types are also available via `ProcessEventMap`:
324
+ *
325
+ * ```ts
326
+ * import type { ProcessEventMap } from 'node:process';
327
+ * const listener = (...args: ProcessEventMap['disconnect']) => { ... };
328
+ * ```
329
+ */
330
+ type DisconnectListener = (...args: ProcessEventMap["disconnect"]) => void;
331
+ /**
332
+ * @deprecated Global listener types will be removed in a future version.
333
+ * Callbacks passed directly to `process`'s EventEmitter methods
334
+ * have their parameter types inferred automatically.
335
+ *
336
+ * `process` event types are also available via `ProcessEventMap`:
337
+ *
338
+ * ```ts
339
+ * import type { ProcessEventMap } from 'node:process';
340
+ * const listener = (...args: ProcessEventMap['exit']) => { ... };
341
+ * ```
342
+ */
343
+ type ExitListener = (...args: ProcessEventMap["exit"]) => void;
344
+ /**
345
+ * @deprecated Global listener types will be removed in a future version.
346
+ * Callbacks passed directly to `process`'s EventEmitter methods
347
+ * have their parameter types inferred automatically.
348
+ *
349
+ * `process` event types are also available via `ProcessEventMap`:
350
+ *
351
+ * ```ts
352
+ * import type { ProcessEventMap } from 'node:process';
353
+ * const listener = (...args: ProcessEventMap['message']) => { ... };
354
+ * ```
355
+ */
356
+ type MessageListener = (...args: ProcessEventMap["message"]) => void;
357
+ /**
358
+ * @deprecated Global listener types will be removed in a future version.
359
+ * Callbacks passed directly to `process`'s EventEmitter methods
360
+ * have their parameter types inferred automatically.
361
+ *
362
+ * `process` event types are also available via `ProcessEventMap`:
363
+ *
364
+ * ```ts
365
+ * import type { ProcessEventMap } from 'node:process';
366
+ * const listener = (...args: ProcessEventMap['rejectionHandled']) => { ... };
367
+ * ```
368
+ */
369
+ type RejectionHandledListener = (...args: ProcessEventMap["rejectionHandled"]) => void;
370
+ /**
371
+ * @deprecated Global listener types will be removed in a future version.
372
+ * Callbacks passed directly to `process`'s EventEmitter methods
373
+ * have their parameter types inferred automatically.
292
374
  */
293
- type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
294
- type WarningListener = (warning: Error) => void;
295
- type MessageListener = (message: unknown, sendHandle: unknown) => void;
296
375
  type SignalsListener = (signal: Signals) => void;
297
- type MultipleResolveListener = (
298
- type: MultipleResolveType,
299
- promise: Promise<unknown>,
300
- value: unknown,
301
- ) => void;
302
- type WorkerListener = (worker: Worker) => void;
376
+ /**
377
+ * @deprecated Global listener types will be removed in a future version.
378
+ * Callbacks passed directly to `process`'s EventEmitter methods
379
+ * have their parameter types inferred automatically.
380
+ *
381
+ * `process` event types are also available via `ProcessEventMap`:
382
+ *
383
+ * ```ts
384
+ * import type { ProcessEventMap } from 'node:process';
385
+ * const listener = (...args: ProcessEventMap['uncaughtException']) => { ... };
386
+ * ```
387
+ */
388
+ type UncaughtExceptionListener = (...args: ProcessEventMap["uncaughtException"]) => void;
389
+ /**
390
+ * @deprecated Global listener types will be removed in a future version.
391
+ * Callbacks passed directly to `process`'s EventEmitter methods
392
+ * have their parameter types inferred automatically.
393
+ *
394
+ * `process` event types are also available via `ProcessEventMap`:
395
+ *
396
+ * ```ts
397
+ * import type { ProcessEventMap } from 'node:process';
398
+ * const listener = (...args: ProcessEventMap['unhandledRejection']) => { ... };
399
+ * ```
400
+ */
401
+ type UnhandledRejectionListener = (...args: ProcessEventMap["unhandledRejection"]) => void;
402
+ /**
403
+ * @deprecated Global listener types will be removed in a future version.
404
+ * Callbacks passed directly to `process`'s EventEmitter methods
405
+ * have their parameter types inferred automatically.
406
+ *
407
+ * `process` event types are also available via `ProcessEventMap`:
408
+ *
409
+ * ```ts
410
+ * import type { ProcessEventMap } from 'node:process';
411
+ * const listener = (...args: ProcessEventMap['warning']) => { ... };
412
+ * ```
413
+ */
414
+ type WarningListener = (...args: ProcessEventMap["warning"]) => void;
415
+ /**
416
+ * @deprecated Global listener types will be removed in a future version.
417
+ * Callbacks passed directly to `process`'s EventEmitter methods
418
+ * have their parameter types inferred automatically.
419
+ *
420
+ * `process` event types are also available via `ProcessEventMap`:
421
+ *
422
+ * ```ts
423
+ * import type { ProcessEventMap } from 'node:process';
424
+ * const listener = (...args: ProcessEventMap['worker']) => { ... };
425
+ * ```
426
+ */
427
+ type WorkerListener = (...args: ProcessEventMap["worker"]) => void;
303
428
  interface Socket extends ReadWriteStream {
304
429
  isTTY?: true | undefined;
305
430
  }
@@ -308,7 +433,7 @@ declare module "node:process" {
308
433
  /**
309
434
  * Can be used to change the default timezone at runtime
310
435
  */
311
- TZ?: string;
436
+ TZ?: string | undefined;
312
437
  }
313
438
  interface HRTime {
314
439
  /**
@@ -432,6 +557,11 @@ declare module "node:process" {
432
557
  * @default false
433
558
  */
434
559
  reportOnUncaughtException: boolean;
560
+ /**
561
+ * If true, a diagnostic report is generated without the environment variables.
562
+ * @default false
563
+ */
564
+ excludeEnv: boolean;
435
565
  /**
436
566
  * The signal used to trigger the creation of a diagnostic report.
437
567
  * @default 'SIGUSR2'
@@ -520,7 +650,7 @@ declare module "node:process" {
520
650
  readonly visibility: string;
521
651
  };
522
652
  }
523
- interface Process extends EventEmitter {
653
+ interface Process extends InternalEventEmitter<ProcessEventMap> {
524
654
  /**
525
655
  * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is
526
656
  * a `Writable` stream.
@@ -709,7 +839,7 @@ declare module "node:process" {
709
839
  * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
710
840
  * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
711
841
  *
712
- * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v24.x/api/os.html#dlopen-constants)`
842
+ * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v25.x/api/os.html#dlopen-constants)`
713
843
  * documentation for details.
714
844
  *
715
845
  * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
@@ -952,7 +1082,7 @@ declare module "node:process" {
952
1082
  * @since v0.1.13
953
1083
  * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
954
1084
  */
955
- exit(code?: number | string | null | undefined): never;
1085
+ exit(code?: number | string | null): never;
956
1086
  /**
957
1087
  * A number which will be the process exit code, when the process either
958
1088
  * exits gracefully, or is exited via {@link exit} without specifying
@@ -963,7 +1093,7 @@ declare module "node:process" {
963
1093
  * @default undefined
964
1094
  * @since v0.11.8
965
1095
  */
966
- exitCode?: number | string | number | undefined;
1096
+ exitCode: number | string | null | undefined;
967
1097
  finalization: {
968
1098
  /**
969
1099
  * This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
@@ -1427,7 +1557,7 @@ declare module "node:process" {
1427
1557
  * @since v20.12.0
1428
1558
  * @param path The path to the .env file
1429
1559
  */
1430
- loadEnvFile(path?: string | URL | Buffer): void;
1560
+ loadEnvFile(path?: PathLike): void;
1431
1561
  /**
1432
1562
  * The `process.pid` property returns the PID of the process.
1433
1563
  *
@@ -1530,7 +1660,7 @@ declare module "node:process" {
1530
1660
  * @since v0.1.17
1531
1661
  * @deprecated Since v14.0.0 - Use `main` instead.
1532
1662
  */
1533
- mainModule?: Module | undefined;
1663
+ mainModule?: Module;
1534
1664
  memoryUsage: MemoryUsageFn;
1535
1665
  /**
1536
1666
  * Gets the amount of memory available to the process (in bytes) based on
@@ -1544,7 +1674,7 @@ declare module "node:process" {
1544
1674
  constrainedMemory(): number;
1545
1675
  /**
1546
1676
  * Gets the amount of free memory that is still available to the process (in bytes).
1547
- * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v24.x/api/process.html#processavailablememory) for more information.
1677
+ * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v25.x/api/process.html#processavailablememory) for more information.
1548
1678
  * @since v20.13.0
1549
1679
  */
1550
1680
  availableMemory(): number;
@@ -1664,6 +1794,11 @@ declare module "node:process" {
1664
1794
  * @param args Additional arguments to pass when invoking the `callback`
1665
1795
  */
1666
1796
  nextTick(callback: Function, ...args: any[]): void;
1797
+ /**
1798
+ * The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process.
1799
+ * See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior.
1800
+ */
1801
+ noDeprecation?: boolean;
1667
1802
  /**
1668
1803
  * This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag.
1669
1804
  *
@@ -1722,18 +1857,7 @@ declare module "node:process" {
1722
1857
  * If no IPC channel exists, this property is undefined.
1723
1858
  * @since v7.1.0
1724
1859
  */
1725
- channel?: {
1726
- /**
1727
- * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1728
- * @since v7.1.0
1729
- */
1730
- ref(): void;
1731
- /**
1732
- * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
1733
- * @since v7.1.0
1734
- */
1735
- unref(): void;
1736
- };
1860
+ channel?: Control;
1737
1861
  /**
1738
1862
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1739
1863
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
@@ -1747,10 +1871,17 @@ declare module "node:process" {
1747
1871
  */
1748
1872
  send?(
1749
1873
  message: any,
1750
- sendHandle?: any,
1751
- options?: {
1752
- keepOpen?: boolean | undefined;
1753
- },
1874
+ callback?: (error: Error | null) => void,
1875
+ ): boolean;
1876
+ send?(
1877
+ message: any,
1878
+ sendHandle: SendHandle,
1879
+ callback?: (error: Error | null) => void,
1880
+ ): boolean;
1881
+ send?(
1882
+ message: any,
1883
+ sendHandle: SendHandle,
1884
+ options: MessageOptions,
1754
1885
  callback?: (error: Error | null) => void,
1755
1886
  ): boolean;
1756
1887
  /**
@@ -1763,7 +1894,7 @@ declare module "node:process" {
1763
1894
  * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
1764
1895
  * @since v0.7.2
1765
1896
  */
1766
- disconnect(): void;
1897
+ disconnect?(): void;
1767
1898
  /**
1768
1899
  * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC
1769
1900
  * channel is connected and will return `false` after `process.disconnect()` is called.
@@ -1817,7 +1948,7 @@ declare module "node:process" {
1817
1948
  allowedNodeEnvironmentFlags: ReadonlySet<string>;
1818
1949
  /**
1819
1950
  * `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
1820
- * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v24.x/api/report.html).
1951
+ * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v25.x/api/report.html).
1821
1952
  * @since v11.8.0
1822
1953
  */
1823
1954
  report: ProcessReport;
@@ -1932,98 +2063,6 @@ declare module "node:process" {
1932
2063
  * **Default:** `process.env`.
1933
2064
  */
1934
2065
  execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
1935
- /* EventEmitter */
1936
- addListener(event: "beforeExit", listener: BeforeExitListener): this;
1937
- addListener(event: "disconnect", listener: DisconnectListener): this;
1938
- addListener(event: "exit", listener: ExitListener): this;
1939
- addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1940
- addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1941
- addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1942
- addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1943
- addListener(event: "warning", listener: WarningListener): this;
1944
- addListener(event: "message", listener: MessageListener): this;
1945
- addListener(event: Signals, listener: SignalsListener): this;
1946
- addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1947
- addListener(event: "worker", listener: WorkerListener): this;
1948
- emit(event: "beforeExit", code: number): boolean;
1949
- emit(event: "disconnect"): boolean;
1950
- emit(event: "exit", code: number): boolean;
1951
- emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
1952
- emit(event: "uncaughtException", error: Error): boolean;
1953
- emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
1954
- emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
1955
- emit(event: "warning", warning: Error): boolean;
1956
- emit(event: "message", message: unknown, sendHandle: unknown): this;
1957
- emit(event: Signals, signal?: Signals): boolean;
1958
- emit(
1959
- event: "multipleResolves",
1960
- type: MultipleResolveType,
1961
- promise: Promise<unknown>,
1962
- value: unknown,
1963
- ): this;
1964
- emit(event: "worker", listener: WorkerListener): this;
1965
- on(event: "beforeExit", listener: BeforeExitListener): this;
1966
- on(event: "disconnect", listener: DisconnectListener): this;
1967
- on(event: "exit", listener: ExitListener): this;
1968
- on(event: "rejectionHandled", listener: RejectionHandledListener): this;
1969
- on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1970
- on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1971
- on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1972
- on(event: "warning", listener: WarningListener): this;
1973
- on(event: "message", listener: MessageListener): this;
1974
- on(event: Signals, listener: SignalsListener): this;
1975
- on(event: "multipleResolves", listener: MultipleResolveListener): this;
1976
- on(event: "worker", listener: WorkerListener): this;
1977
- on(event: string | symbol, listener: (...args: any[]) => void): this;
1978
- once(event: "beforeExit", listener: BeforeExitListener): this;
1979
- once(event: "disconnect", listener: DisconnectListener): this;
1980
- once(event: "exit", listener: ExitListener): this;
1981
- once(event: "rejectionHandled", listener: RejectionHandledListener): this;
1982
- once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1983
- once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1984
- once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1985
- once(event: "warning", listener: WarningListener): this;
1986
- once(event: "message", listener: MessageListener): this;
1987
- once(event: Signals, listener: SignalsListener): this;
1988
- once(event: "multipleResolves", listener: MultipleResolveListener): this;
1989
- once(event: "worker", listener: WorkerListener): this;
1990
- once(event: string | symbol, listener: (...args: any[]) => void): this;
1991
- prependListener(event: "beforeExit", listener: BeforeExitListener): this;
1992
- prependListener(event: "disconnect", listener: DisconnectListener): this;
1993
- prependListener(event: "exit", listener: ExitListener): this;
1994
- prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1995
- prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1996
- prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1997
- prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1998
- prependListener(event: "warning", listener: WarningListener): this;
1999
- prependListener(event: "message", listener: MessageListener): this;
2000
- prependListener(event: Signals, listener: SignalsListener): this;
2001
- prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
2002
- prependListener(event: "worker", listener: WorkerListener): this;
2003
- prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
2004
- prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
2005
- prependOnceListener(event: "exit", listener: ExitListener): this;
2006
- prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
2007
- prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2008
- prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2009
- prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2010
- prependOnceListener(event: "warning", listener: WarningListener): this;
2011
- prependOnceListener(event: "message", listener: MessageListener): this;
2012
- prependOnceListener(event: Signals, listener: SignalsListener): this;
2013
- prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
2014
- prependOnceListener(event: "worker", listener: WorkerListener): this;
2015
- listeners(event: "beforeExit"): BeforeExitListener[];
2016
- listeners(event: "disconnect"): DisconnectListener[];
2017
- listeners(event: "exit"): ExitListener[];
2018
- listeners(event: "rejectionHandled"): RejectionHandledListener[];
2019
- listeners(event: "uncaughtException"): UncaughtExceptionListener[];
2020
- listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
2021
- listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
2022
- listeners(event: "warning"): WarningListener[];
2023
- listeners(event: "message"): MessageListener[];
2024
- listeners(event: Signals): SignalsListener[];
2025
- listeners(event: "multipleResolves"): MultipleResolveListener[];
2026
- listeners(event: "worker"): WorkerListener[];
2027
2066
  }
2028
2067
  }
2029
2068
  }
package/punycode.d.ts CHANGED
@@ -38,8 +38,8 @@
38
38
  * The `punycode` module is a third-party dependency used by Node.js and
39
39
  * made available to developers as a convenience. Fixes or other modifications to
40
40
  * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
41
- * @deprecated Since v7.0.0 - Deprecated
42
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/punycode.js)
41
+ * @deprecated
42
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/punycode.js)
43
43
  */
44
44
 
45
45
  declare module "node:punycode" {
package/querystring.d.ts CHANGED
@@ -24,7 +24,7 @@
24
24
  * `querystring` is more performant than `URLSearchParams` but is not a
25
25
  * standardized API. Use `URLSearchParams` when performance is not critical or
26
26
  * when compatibility with browser code is desirable.
27
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/querystring.js)
27
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/querystring.js)
28
28
  */
29
29
 
30
30
  declare module "node:querystring" {