@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/dgram.d.ts CHANGED
@@ -38,13 +38,14 @@
38
38
  * server.bind(41234);
39
39
  * // Prints: server listening 0.0.0.0:41234
40
40
  * ```
41
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/dgram.js)
41
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/dgram.js)
42
42
  */
43
43
 
44
44
  declare module "node:dgram" {
45
- import { AddressInfo, BlockList } from 'node:net';
45
+ import { NonSharedBuffer } from 'node:buffer';
46
46
  import * as dns from '_not-use-node-type_dns';
47
- import { Abortable, EventEmitter } from 'node:events';
47
+ import { Abortable, EventEmitter, InternalEventEmitter } from 'node:events';
48
+ import { AddressInfo, BlockList } from 'node:net';
48
49
  interface RemoteInfo {
49
50
  address: string;
50
51
  family: "IPv4" | "IPv6";
@@ -101,8 +102,15 @@ declare module "node:dgram" {
101
102
  * @param options Available options are:
102
103
  * @param callback Attached as a listener for `'message'` events. Optional.
103
104
  */
104
- function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
105
- function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
105
+ function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
106
+ function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
107
+ interface SocketEventMap {
108
+ "close": [];
109
+ "connect": [];
110
+ "error": [err: Error];
111
+ "listening": [];
112
+ "message": [msg: NonSharedBuffer, rinfo: RemoteInfo];
113
+ }
106
114
  /**
107
115
  * Encapsulates the datagram functionality.
108
116
  *
@@ -110,7 +118,7 @@ declare module "node:dgram" {
110
118
  * The `new` keyword is not to be used to create `dgram.Socket` instances.
111
119
  * @since v0.1.99
112
120
  */
113
- class Socket extends EventEmitter {
121
+ class Socket implements EventEmitter {
114
122
  /**
115
123
  * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not
116
124
  * specified, the operating system will choose
@@ -559,54 +567,11 @@ declare module "node:dgram" {
559
567
  * @since v13.1.0, v12.16.0
560
568
  */
561
569
  dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
562
- /**
563
- * events.EventEmitter
564
- * 1. close
565
- * 2. connect
566
- * 3. error
567
- * 4. listening
568
- * 5. message
569
- */
570
- addListener(event: string, listener: (...args: any[]) => void): this;
571
- addListener(event: "close", listener: () => void): this;
572
- addListener(event: "connect", listener: () => void): this;
573
- addListener(event: "error", listener: (err: Error) => void): this;
574
- addListener(event: "listening", listener: () => void): this;
575
- addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
576
- emit(event: string | symbol, ...args: any[]): boolean;
577
- emit(event: "close"): boolean;
578
- emit(event: "connect"): boolean;
579
- emit(event: "error", err: Error): boolean;
580
- emit(event: "listening"): boolean;
581
- emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
582
- on(event: string, listener: (...args: any[]) => void): this;
583
- on(event: "close", listener: () => void): this;
584
- on(event: "connect", listener: () => void): this;
585
- on(event: "error", listener: (err: Error) => void): this;
586
- on(event: "listening", listener: () => void): this;
587
- on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
588
- once(event: string, listener: (...args: any[]) => void): this;
589
- once(event: "close", listener: () => void): this;
590
- once(event: "connect", listener: () => void): this;
591
- once(event: "error", listener: (err: Error) => void): this;
592
- once(event: "listening", listener: () => void): this;
593
- once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
594
- prependListener(event: string, listener: (...args: any[]) => void): this;
595
- prependListener(event: "close", listener: () => void): this;
596
- prependListener(event: "connect", listener: () => void): this;
597
- prependListener(event: "error", listener: (err: Error) => void): this;
598
- prependListener(event: "listening", listener: () => void): this;
599
- prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
600
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
601
- prependOnceListener(event: "close", listener: () => void): this;
602
- prependOnceListener(event: "connect", listener: () => void): this;
603
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
604
- prependOnceListener(event: "listening", listener: () => void): this;
605
- prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
606
570
  /**
607
571
  * Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
608
572
  * @since v20.5.0
609
573
  */
610
574
  [Symbol.asyncDispose](): Promise<void>;
611
575
  }
576
+ interface Socket extends InternalEventEmitter<SocketEventMap> {}
612
577
  }
@@ -35,7 +35,7 @@
35
35
  * should generally include the module name to avoid collisions with data from
36
36
  * other modules.
37
37
  * @since v15.1.0, v14.17.0
38
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/diagnostics_channel.js)
38
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/diagnostics_channel.js)
39
39
  */
40
40
 
41
41
  declare module "node:diagnostics_channel" {
@@ -205,7 +205,6 @@ declare module "node:diagnostics_channel" {
205
205
  * });
206
206
  * ```
207
207
  * @since v15.1.0, v14.17.0
208
- * @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)}
209
208
  * @param onMessage The handler to receive channel messages
210
209
  */
211
210
  subscribe(onMessage: ChannelListener): void;
@@ -226,7 +225,6 @@ declare module "node:diagnostics_channel" {
226
225
  * channel.unsubscribe(onMessage);
227
226
  * ```
228
227
  * @since v15.1.0, v14.17.0
229
- * @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)}
230
228
  * @param onMessage The previous subscribed handler to remove
231
229
  * @return `true` if the handler was found, `false` otherwise.
232
230
  */