@idlebox/stripe-node-types 24.0.14-patch.0 → 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.
- package/README.md +1 -1
- package/assert/strict.d.ts +113 -1
- package/assert.d.ts +162 -248
- package/async_hooks.d.ts +20 -5
- package/buffer.buffer.d.ts +24 -6
- package/buffer.d.ts +63 -168
- package/child_process.d.ts +117 -223
- package/cluster.d.ts +251 -329
- package/compatibility/iterators.d.ts +15 -0
- package/console.d.ts +60 -346
- package/constants.d.ts +15 -1
- package/crypto.d.ts +713 -1149
- package/dgram.d.ts +30 -50
- package/diagnostics_channel.d.ts +16 -3
- package/dns/promises.d.ts +15 -0
- package/dns.d.ts +150 -131
- package/domain.d.ts +25 -14
- package/events.d.ts +858 -719
- package/fs/promises.d.ts +117 -53
- package/fs.d.ts +729 -484
- package/globals.d.ts +142 -344
- package/globals.typedarray.d.ts +94 -0
- package/http.d.ts +358 -246
- package/http2.d.ts +578 -711
- package/https.d.ts +85 -216
- package/index.d.ts +39 -3
- package/inspector/promises.d.ts +54 -0
- package/inspector.d.ts +180 -3936
- package/inspector.generated.d.ts +4242 -0
- package/module.d.ts +60 -95
- package/my-shim.d.ts +15 -0
- package/net.d.ts +102 -186
- package/os.d.ts +32 -6
- package/package.json +3 -8
- package/path/posix.d.ts +20 -0
- package/path/win32.d.ts +20 -0
- package/path.d.ts +132 -122
- package/perf_hooks.d.ts +310 -644
- package/process.d.ts +192 -138
- package/punycode.d.ts +17 -2
- package/querystring.d.ts +16 -1
- package/quic.d.ts +926 -0
- package/readline/promises.d.ts +16 -1
- package/readline.d.ts +80 -118
- package/repl.d.ts +98 -96
- package/sea.d.ts +25 -1
- package/sqlite.d.ts +277 -13
- package/stream/consumers.d.ts +22 -7
- package/stream/promises.d.ts +148 -12
- package/stream/web.d.ts +187 -494
- package/stream.d.ts +608 -490
- package/string_decoder.d.ts +18 -3
- package/test/reporters.d.ts +112 -0
- package/test.d.ts +238 -199
- package/timers/promises.d.ts +16 -1
- package/timers.d.ts +16 -129
- package/tls.d.ts +163 -163
- package/trace_events.d.ts +21 -6
- package/ts5.6/buffer.buffer.d.ts +25 -8
- package/ts5.6/compatibility/float16array.d.ts +15 -0
- package/ts5.6/globals.typedarray.d.ts +31 -0
- package/ts5.6/index.d.ts +39 -3
- package/ts5.7/compatibility/float16array.d.ts +15 -0
- package/ts5.7/index.d.ts +39 -3
- package/tty.d.ts +70 -13
- package/undici-types/agent.d.ts +20 -4
- package/undici-types/api.d.ts +15 -0
- package/undici-types/balanced-pool.d.ts +15 -0
- package/undici-types/cache-interceptor.d.ts +15 -0
- package/undici-types/cache.d.ts +15 -0
- package/undici-types/client-stats.d.ts +31 -0
- package/undici-types/client.d.ts +21 -5
- package/undici-types/connector.d.ts +15 -0
- package/undici-types/content-type.d.ts +15 -0
- package/undici-types/cookies.d.ts +15 -0
- package/undici-types/diagnostics-channel.d.ts +24 -1
- package/undici-types/dispatcher.d.ts +18 -8
- package/undici-types/env-http-proxy-agent.d.ts +17 -1
- package/undici-types/errors.d.ts +20 -15
- package/undici-types/eventsource.d.ts +24 -4
- package/undici-types/fetch.d.ts +16 -0
- package/undici-types/formdata.d.ts +15 -0
- package/undici-types/global-dispatcher.d.ts +15 -0
- package/undici-types/global-origin.d.ts +15 -0
- package/undici-types/h2c-client.d.ts +15 -2
- package/undici-types/handlers.d.ts +16 -1
- package/undici-types/header.d.ts +15 -0
- package/undici-types/index.d.ts +21 -1
- package/undici-types/interceptors.d.ts +20 -0
- package/undici-types/mock-agent.d.ts +18 -0
- package/undici-types/mock-call-history.d.ts +15 -0
- package/undici-types/mock-client.d.ts +17 -0
- package/undici-types/mock-errors.d.ts +15 -0
- package/undici-types/mock-interceptor.d.ts +17 -1
- package/undici-types/mock-pool.d.ts +17 -0
- package/undici-types/package.json +1 -1
- package/undici-types/patch.d.ts +15 -0
- package/undici-types/pool-stats.d.ts +15 -0
- package/undici-types/pool.d.ts +17 -0
- package/undici-types/proxy-agent.d.ts +16 -0
- package/undici-types/readable.d.ts +15 -0
- package/undici-types/retry-agent.d.ts +15 -0
- package/undici-types/retry-handler.d.ts +24 -0
- package/undici-types/snapshot-agent.d.ts +125 -0
- package/undici-types/util.d.ts +15 -0
- package/undici-types/utility.d.ts +15 -0
- package/undici-types/webidl.d.ts +126 -36
- package/undici-types/websocket.d.ts +18 -1
- package/url.d.ts +107 -587
- package/util/types.d.ts +571 -0
- package/util.d.ts +158 -792
- package/v8.d.ts +82 -7
- package/vm.d.ts +267 -108
- package/wasi.d.ts +38 -2
- package/web-globals/abortcontroller.d.ts +75 -0
- package/web-globals/blob.d.ts +39 -0
- package/web-globals/console.d.ts +25 -0
- package/web-globals/crypto.d.ts +55 -0
- package/web-globals/domexception.d.ts +84 -0
- package/web-globals/encoding.d.ts +27 -0
- package/{dom-events.d.ts → web-globals/events.d.ts} +72 -50
- package/web-globals/fetch.d.ts +70 -0
- package/web-globals/importmeta.d.ts +29 -0
- package/web-globals/messaging.d.ts +39 -0
- package/web-globals/navigator.d.ts +41 -0
- package/web-globals/performance.d.ts +61 -0
- package/web-globals/storage.d.ts +40 -0
- package/web-globals/streams.d.ts +131 -0
- package/web-globals/timers.d.ts +60 -0
- package/web-globals/url.d.ts +40 -0
- package/worker_threads.d.ts +306 -349
- package/zlib.d.ts +59 -94
- package/ts5.1/compatibility/disposable.d.ts +0 -13
- package/ts5.1/index.d.ts +0 -100
package/dgram.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// biome-ignore-all lint: generated file
|
|
2
|
+
// biome-ignore-all assist: generated file
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
|
|
6
|
+
/******************************************************************************
|
|
7
|
+
* GENERATED FILE, DO NOT MODIFY
|
|
8
|
+
* 这是生成的文件,千万不要修改
|
|
9
|
+
*
|
|
10
|
+
* @build-script/codegen - The Simple Code Generater
|
|
11
|
+
* https://github.com/GongT/baobao
|
|
12
|
+
*
|
|
13
|
+
******************************************************************************/
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* The `node:dgram` module provides an implementation of UDP datagram sockets.
|
|
3
18
|
*
|
|
@@ -23,13 +38,14 @@
|
|
|
23
38
|
* server.bind(41234);
|
|
24
39
|
* // Prints: server listening 0.0.0.0:41234
|
|
25
40
|
* ```
|
|
26
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
41
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/dgram.js)
|
|
27
42
|
*/
|
|
28
43
|
|
|
29
44
|
declare module "node:dgram" {
|
|
30
|
-
import {
|
|
45
|
+
import { NonSharedBuffer } from 'node:buffer';
|
|
31
46
|
import * as dns from '_not-use-node-type_dns';
|
|
32
|
-
import { Abortable, EventEmitter } from 'node:events';
|
|
47
|
+
import { Abortable, EventEmitter, InternalEventEmitter } from 'node:events';
|
|
48
|
+
import { AddressInfo, BlockList } from 'node:net';
|
|
33
49
|
interface RemoteInfo {
|
|
34
50
|
address: string;
|
|
35
51
|
family: "IPv4" | "IPv6";
|
|
@@ -86,8 +102,15 @@ declare module "node:dgram" {
|
|
|
86
102
|
* @param options Available options are:
|
|
87
103
|
* @param callback Attached as a listener for `'message'` events. Optional.
|
|
88
104
|
*/
|
|
89
|
-
function createSocket(type: SocketType, callback?: (msg:
|
|
90
|
-
function createSocket(options: SocketOptions, callback?: (msg:
|
|
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
|
+
}
|
|
91
114
|
/**
|
|
92
115
|
* Encapsulates the datagram functionality.
|
|
93
116
|
*
|
|
@@ -95,7 +118,7 @@ declare module "node:dgram" {
|
|
|
95
118
|
* The `new` keyword is not to be used to create `dgram.Socket` instances.
|
|
96
119
|
* @since v0.1.99
|
|
97
120
|
*/
|
|
98
|
-
class Socket
|
|
121
|
+
class Socket implements EventEmitter {
|
|
99
122
|
/**
|
|
100
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
|
|
101
124
|
* specified, the operating system will choose
|
|
@@ -544,54 +567,11 @@ declare module "node:dgram" {
|
|
|
544
567
|
* @since v13.1.0, v12.16.0
|
|
545
568
|
*/
|
|
546
569
|
dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
|
|
547
|
-
/**
|
|
548
|
-
* events.EventEmitter
|
|
549
|
-
* 1. close
|
|
550
|
-
* 2. connect
|
|
551
|
-
* 3. error
|
|
552
|
-
* 4. listening
|
|
553
|
-
* 5. message
|
|
554
|
-
*/
|
|
555
|
-
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
556
|
-
addListener(event: "close", listener: () => void): this;
|
|
557
|
-
addListener(event: "connect", listener: () => void): this;
|
|
558
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
|
559
|
-
addListener(event: "listening", listener: () => void): this;
|
|
560
|
-
addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
561
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
562
|
-
emit(event: "close"): boolean;
|
|
563
|
-
emit(event: "connect"): boolean;
|
|
564
|
-
emit(event: "error", err: Error): boolean;
|
|
565
|
-
emit(event: "listening"): boolean;
|
|
566
|
-
emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
|
|
567
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
568
|
-
on(event: "close", listener: () => void): this;
|
|
569
|
-
on(event: "connect", listener: () => void): this;
|
|
570
|
-
on(event: "error", listener: (err: Error) => void): this;
|
|
571
|
-
on(event: "listening", listener: () => void): this;
|
|
572
|
-
on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
573
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
|
574
|
-
once(event: "close", listener: () => void): this;
|
|
575
|
-
once(event: "connect", listener: () => void): this;
|
|
576
|
-
once(event: "error", listener: (err: Error) => void): this;
|
|
577
|
-
once(event: "listening", listener: () => void): this;
|
|
578
|
-
once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
579
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
580
|
-
prependListener(event: "close", listener: () => void): this;
|
|
581
|
-
prependListener(event: "connect", listener: () => void): this;
|
|
582
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
583
|
-
prependListener(event: "listening", listener: () => void): this;
|
|
584
|
-
prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
585
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
586
|
-
prependOnceListener(event: "close", listener: () => void): this;
|
|
587
|
-
prependOnceListener(event: "connect", listener: () => void): this;
|
|
588
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
589
|
-
prependOnceListener(event: "listening", listener: () => void): this;
|
|
590
|
-
prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
591
570
|
/**
|
|
592
571
|
* Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
|
|
593
572
|
* @since v20.5.0
|
|
594
573
|
*/
|
|
595
574
|
[Symbol.asyncDispose](): Promise<void>;
|
|
596
575
|
}
|
|
576
|
+
interface Socket extends InternalEventEmitter<SocketEventMap> {}
|
|
597
577
|
}
|
package/diagnostics_channel.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// biome-ignore-all lint: generated file
|
|
2
|
+
// biome-ignore-all assist: generated file
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
|
|
6
|
+
/******************************************************************************
|
|
7
|
+
* GENERATED FILE, DO NOT MODIFY
|
|
8
|
+
* 这是生成的文件,千万不要修改
|
|
9
|
+
*
|
|
10
|
+
* @build-script/codegen - The Simple Code Generater
|
|
11
|
+
* https://github.com/GongT/baobao
|
|
12
|
+
*
|
|
13
|
+
******************************************************************************/
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* The `node:diagnostics_channel` module provides an API to create named channels
|
|
3
18
|
* to report arbitrary message data for diagnostics purposes.
|
|
@@ -20,7 +35,7 @@
|
|
|
20
35
|
* should generally include the module name to avoid collisions with data from
|
|
21
36
|
* other modules.
|
|
22
37
|
* @since v15.1.0, v14.17.0
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
38
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/diagnostics_channel.js)
|
|
24
39
|
*/
|
|
25
40
|
|
|
26
41
|
declare module "node:diagnostics_channel" {
|
|
@@ -190,7 +205,6 @@ declare module "node:diagnostics_channel" {
|
|
|
190
205
|
* });
|
|
191
206
|
* ```
|
|
192
207
|
* @since v15.1.0, v14.17.0
|
|
193
|
-
* @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)}
|
|
194
208
|
* @param onMessage The handler to receive channel messages
|
|
195
209
|
*/
|
|
196
210
|
subscribe(onMessage: ChannelListener): void;
|
|
@@ -211,7 +225,6 @@ declare module "node:diagnostics_channel" {
|
|
|
211
225
|
* channel.unsubscribe(onMessage);
|
|
212
226
|
* ```
|
|
213
227
|
* @since v15.1.0, v14.17.0
|
|
214
|
-
* @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)}
|
|
215
228
|
* @param onMessage The previous subscribed handler to remove
|
|
216
229
|
* @return `true` if the handler was found, `false` otherwise.
|
|
217
230
|
*/
|
package/dns/promises.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// biome-ignore-all lint: generated file
|
|
2
|
+
// biome-ignore-all assist: generated file
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
|
|
6
|
+
/******************************************************************************
|
|
7
|
+
* GENERATED FILE, DO NOT MODIFY
|
|
8
|
+
* 这是生成的文件,千万不要修改
|
|
9
|
+
*
|
|
10
|
+
* @build-script/codegen - The Simple Code Generater
|
|
11
|
+
* https://github.com/GongT/baobao
|
|
12
|
+
*
|
|
13
|
+
******************************************************************************/
|
|
14
|
+
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* The `dns.promises` API provides an alternative set of asynchronous DNS methods
|
|
3
18
|
* that return `Promise` objects rather than using callbacks. The API is accessible
|