@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.
- package/README.md +1 -1
- package/assert/strict.d.ts +98 -1
- package/assert.d.ts +147 -248
- package/async_hooks.d.ts +5 -5
- package/buffer.buffer.d.ts +9 -6
- package/buffer.d.ts +49 -169
- package/child_process.d.ts +102 -223
- package/cluster.d.ts +236 -329
- package/console.d.ts +45 -346
- package/constants.d.ts +0 -1
- package/crypto.d.ts +698 -1149
- package/dgram.d.ts +15 -50
- package/diagnostics_channel.d.ts +1 -3
- package/dns.d.ts +135 -131
- package/domain.d.ts +10 -14
- package/events.d.ts +846 -722
- package/fs/promises.d.ts +102 -53
- package/fs.d.ts +714 -484
- package/globals.d.ts +130 -347
- package/globals.typedarray.d.ts +79 -0
- package/http.d.ts +343 -246
- package/http2.d.ts +563 -711
- package/https.d.ts +70 -216
- package/index.d.ts +24 -3
- package/inspector/promises.d.ts +54 -0
- package/inspector.d.ts +167 -3938
- package/inspector.generated.d.ts +4242 -0
- package/module.d.ts +45 -95
- package/net.d.ts +87 -186
- package/os.d.ts +17 -6
- package/package.json +3 -8
- package/path/posix.d.ts +20 -0
- package/path/win32.d.ts +20 -0
- package/path.d.ts +117 -122
- package/perf_hooks.d.ts +295 -644
- package/process.d.ts +177 -138
- package/punycode.d.ts +2 -2
- package/querystring.d.ts +1 -1
- package/quic.d.ts +926 -0
- package/readline/promises.d.ts +1 -1
- package/readline.d.ts +65 -118
- package/repl.d.ts +83 -96
- package/sea.d.ts +10 -1
- package/sqlite.d.ts +262 -13
- package/stream/consumers.d.ts +7 -7
- package/stream/promises.d.ts +133 -12
- package/stream/web.d.ts +173 -495
- package/stream.d.ts +593 -490
- package/string_decoder.d.ts +3 -3
- package/test/reporters.d.ts +112 -0
- package/test.d.ts +223 -199
- package/timers/promises.d.ts +1 -1
- package/timers.d.ts +1 -129
- package/tls.d.ts +148 -163
- package/trace_events.d.ts +6 -6
- package/ts5.6/buffer.buffer.d.ts +10 -8
- package/ts5.6/globals.typedarray.d.ts +16 -0
- package/ts5.6/index.d.ts +24 -3
- package/ts5.7/index.d.ts +24 -3
- package/tty.d.ts +55 -13
- package/url.d.ts +92 -587
- package/util/types.d.ts +571 -0
- package/util.d.ts +143 -792
- package/v8.d.ts +67 -7
- package/vm.d.ts +252 -108
- package/wasi.d.ts +23 -2
- package/web-globals/abortcontroller.d.ts +75 -0
- package/web-globals/blob.d.ts +39 -0
- package/{ts5.1/compatibility/disposable.d.ts → web-globals/console.d.ts} +6 -9
- 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} +57 -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 +291 -349
- package/zlib.d.ts +44 -94
- package/ts5.1/index.d.ts +0 -115
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import { InternalEventTargetEventProperties } from 'node:events';
|
|
19
|
+
|
|
20
|
+
type _AbortController = typeof globalThis extends { onmessage: any } ? {} : AbortController;
|
|
21
|
+
interface AbortController {
|
|
22
|
+
readonly signal: AbortSignal;
|
|
23
|
+
abort(reason?: any): void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface AbortSignalEventMap {
|
|
27
|
+
"abort": Event;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type _AbortSignal = typeof globalThis extends { onmessage: any } ? {} : AbortSignal;
|
|
31
|
+
interface AbortSignal extends EventTarget, InternalEventTargetEventProperties<AbortSignalEventMap> {
|
|
32
|
+
readonly aborted: boolean;
|
|
33
|
+
readonly reason: any;
|
|
34
|
+
throwIfAborted(): void;
|
|
35
|
+
addEventListener<K extends keyof AbortSignalEventMap>(
|
|
36
|
+
type: K,
|
|
37
|
+
listener: (ev: AbortSignalEventMap[K]) => void,
|
|
38
|
+
options?: AddEventListenerOptions | boolean,
|
|
39
|
+
): void;
|
|
40
|
+
addEventListener(
|
|
41
|
+
type: string,
|
|
42
|
+
listener: EventListener | EventListenerObject,
|
|
43
|
+
options?: AddEventListenerOptions | boolean,
|
|
44
|
+
): void;
|
|
45
|
+
removeEventListener<K extends keyof AbortSignalEventMap>(
|
|
46
|
+
type: K,
|
|
47
|
+
listener: (ev: AbortSignalEventMap[K]) => void,
|
|
48
|
+
options?: EventListenerOptions | boolean,
|
|
49
|
+
): void;
|
|
50
|
+
removeEventListener(
|
|
51
|
+
type: string,
|
|
52
|
+
listener: EventListener | EventListenerObject,
|
|
53
|
+
options?: EventListenerOptions | boolean,
|
|
54
|
+
): void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare global {
|
|
58
|
+
interface AbortController extends _AbortController {}
|
|
59
|
+
var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
|
|
60
|
+
: {
|
|
61
|
+
prototype: AbortController;
|
|
62
|
+
new(): AbortController;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
interface AbortSignal extends _AbortSignal {}
|
|
66
|
+
var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
|
|
67
|
+
: {
|
|
68
|
+
prototype: AbortSignal;
|
|
69
|
+
new(): AbortSignal;
|
|
70
|
+
abort(reason?: any): AbortSignal;
|
|
71
|
+
any(signals: AbortSignal[]): AbortSignal;
|
|
72
|
+
timeout(milliseconds: number): AbortSignal;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import * as buffer from 'node:buffer';
|
|
19
|
+
|
|
20
|
+
type _Blob = typeof globalThis extends { onmessage: any } ? {} : buffer.Blob;
|
|
21
|
+
type _BlobPropertyBag = typeof globalThis extends { onmessage: any } ? {} : buffer.BlobPropertyBag;
|
|
22
|
+
type _File = typeof globalThis extends { onmessage: any } ? {} : buffer.File;
|
|
23
|
+
type _FilePropertyBag = typeof globalThis extends { onmessage: any } ? {} : buffer.FilePropertyBag;
|
|
24
|
+
|
|
25
|
+
declare global {
|
|
26
|
+
interface Blob extends _Blob {}
|
|
27
|
+
var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T : typeof buffer.Blob;
|
|
28
|
+
|
|
29
|
+
interface BlobPropertyBag extends _BlobPropertyBag {}
|
|
30
|
+
|
|
31
|
+
interface File extends _File {}
|
|
32
|
+
var File: typeof globalThis extends { onmessage: any; File: infer T } ? T : typeof buffer.File;
|
|
33
|
+
|
|
34
|
+
interface FilePropertyBag extends _FilePropertyBag {}
|
|
35
|
+
|
|
36
|
+
function atob(data: string): string;
|
|
37
|
+
function btoa(data: string): string;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -13,16 +13,13 @@
|
|
|
13
13
|
******************************************************************************/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
readonly dispose: unique symbol;
|
|
18
|
-
readonly asyncDispose: unique symbol;
|
|
19
|
-
}
|
|
16
|
+
export {};
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
import * as console from 'node:console';
|
|
19
|
+
|
|
20
|
+
declare global {
|
|
21
|
+
interface Console extends console.Console {}
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
23
|
+
var console: Console;
|
|
27
24
|
}
|
|
28
25
|
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import { webcrypto } from 'node:crypto';
|
|
19
|
+
|
|
20
|
+
type _Crypto = typeof globalThis extends { onmessage: any } ? {} : webcrypto.Crypto;
|
|
21
|
+
type _CryptoKey = typeof globalThis extends { onmessage: any } ? {} : webcrypto.CryptoKey;
|
|
22
|
+
type _SubtleCrypto = typeof globalThis extends { onmessage: any } ? {} : webcrypto.SubtleCrypto;
|
|
23
|
+
|
|
24
|
+
declare global {
|
|
25
|
+
interface Crypto extends _Crypto {}
|
|
26
|
+
var Crypto: typeof globalThis extends { onmessage: any; Crypto: infer T } ? T : {
|
|
27
|
+
prototype: webcrypto.Crypto;
|
|
28
|
+
new(): webcrypto.Crypto;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
interface CryptoKey extends _CryptoKey {}
|
|
32
|
+
var CryptoKey: typeof globalThis extends { onmessage: any; CryptoKey: infer T } ? T : {
|
|
33
|
+
prototype: webcrypto.CryptoKey;
|
|
34
|
+
new(): webcrypto.CryptoKey;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
interface SubtleCrypto extends _SubtleCrypto {}
|
|
38
|
+
var SubtleCrypto: typeof globalThis extends { onmessage: any; SubtleCrypto: infer T } ? T : {
|
|
39
|
+
prototype: webcrypto.SubtleCrypto;
|
|
40
|
+
new(): webcrypto.SubtleCrypto;
|
|
41
|
+
supports(
|
|
42
|
+
operation: string,
|
|
43
|
+
algorithm: webcrypto.AlgorithmIdentifier,
|
|
44
|
+
length?: number,
|
|
45
|
+
): boolean;
|
|
46
|
+
supports(
|
|
47
|
+
operation: string,
|
|
48
|
+
algorithm: webcrypto.AlgorithmIdentifier,
|
|
49
|
+
additionalAlgorithm: webcrypto.AlgorithmIdentifier,
|
|
50
|
+
): boolean;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var crypto: typeof globalThis extends { onmessage: any; crypto: infer T } ? T : webcrypto.Crypto;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
type _DOMException = typeof globalThis extends { onmessage: any } ? {} : DOMException;
|
|
19
|
+
interface DOMException extends Error {
|
|
20
|
+
readonly code: number;
|
|
21
|
+
readonly message: string;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly INDEX_SIZE_ERR: 1;
|
|
24
|
+
readonly DOMSTRING_SIZE_ERR: 2;
|
|
25
|
+
readonly HIERARCHY_REQUEST_ERR: 3;
|
|
26
|
+
readonly WRONG_DOCUMENT_ERR: 4;
|
|
27
|
+
readonly INVALID_CHARACTER_ERR: 5;
|
|
28
|
+
readonly NO_DATA_ALLOWED_ERR: 6;
|
|
29
|
+
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
|
30
|
+
readonly NOT_FOUND_ERR: 8;
|
|
31
|
+
readonly NOT_SUPPORTED_ERR: 9;
|
|
32
|
+
readonly INUSE_ATTRIBUTE_ERR: 10;
|
|
33
|
+
readonly INVALID_STATE_ERR: 11;
|
|
34
|
+
readonly SYNTAX_ERR: 12;
|
|
35
|
+
readonly INVALID_MODIFICATION_ERR: 13;
|
|
36
|
+
readonly NAMESPACE_ERR: 14;
|
|
37
|
+
readonly INVALID_ACCESS_ERR: 15;
|
|
38
|
+
readonly VALIDATION_ERR: 16;
|
|
39
|
+
readonly TYPE_MISMATCH_ERR: 17;
|
|
40
|
+
readonly SECURITY_ERR: 18;
|
|
41
|
+
readonly NETWORK_ERR: 19;
|
|
42
|
+
readonly ABORT_ERR: 20;
|
|
43
|
+
readonly URL_MISMATCH_ERR: 21;
|
|
44
|
+
readonly QUOTA_EXCEEDED_ERR: 22;
|
|
45
|
+
readonly TIMEOUT_ERR: 23;
|
|
46
|
+
readonly INVALID_NODE_TYPE_ERR: 24;
|
|
47
|
+
readonly DATA_CLONE_ERR: 25;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare global {
|
|
51
|
+
interface DOMException extends _DOMException {}
|
|
52
|
+
var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
|
|
53
|
+
: {
|
|
54
|
+
prototype: DOMException;
|
|
55
|
+
new(message?: string, name?: string): DOMException;
|
|
56
|
+
new(message?: string, options?: { name?: string; cause?: unknown }): DOMException;
|
|
57
|
+
readonly INDEX_SIZE_ERR: 1;
|
|
58
|
+
readonly DOMSTRING_SIZE_ERR: 2;
|
|
59
|
+
readonly HIERARCHY_REQUEST_ERR: 3;
|
|
60
|
+
readonly WRONG_DOCUMENT_ERR: 4;
|
|
61
|
+
readonly INVALID_CHARACTER_ERR: 5;
|
|
62
|
+
readonly NO_DATA_ALLOWED_ERR: 6;
|
|
63
|
+
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
|
|
64
|
+
readonly NOT_FOUND_ERR: 8;
|
|
65
|
+
readonly NOT_SUPPORTED_ERR: 9;
|
|
66
|
+
readonly INUSE_ATTRIBUTE_ERR: 10;
|
|
67
|
+
readonly INVALID_STATE_ERR: 11;
|
|
68
|
+
readonly SYNTAX_ERR: 12;
|
|
69
|
+
readonly INVALID_MODIFICATION_ERR: 13;
|
|
70
|
+
readonly NAMESPACE_ERR: 14;
|
|
71
|
+
readonly INVALID_ACCESS_ERR: 15;
|
|
72
|
+
readonly VALIDATION_ERR: 16;
|
|
73
|
+
readonly TYPE_MISMATCH_ERR: 17;
|
|
74
|
+
readonly SECURITY_ERR: 18;
|
|
75
|
+
readonly NETWORK_ERR: 19;
|
|
76
|
+
readonly ABORT_ERR: 20;
|
|
77
|
+
readonly URL_MISMATCH_ERR: 21;
|
|
78
|
+
readonly QUOTA_EXCEEDED_ERR: 22;
|
|
79
|
+
readonly TIMEOUT_ERR: 23;
|
|
80
|
+
readonly INVALID_NODE_TYPE_ERR: 24;
|
|
81
|
+
readonly DATA_CLONE_ERR: 25;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import * as util from 'node:util';
|
|
19
|
+
|
|
20
|
+
declare global {
|
|
21
|
+
interface TextDecoder extends util.TextDecoder {}
|
|
22
|
+
var TextDecoder: typeof globalThis extends { onmessage: any; TextDecoder: infer T } ? T : typeof util.TextDecoder;
|
|
23
|
+
|
|
24
|
+
interface TextEncoder extends util.TextEncoder {}
|
|
25
|
+
var TextEncoder: typeof globalThis extends { onmessage: any; TextEncoder: infer T } ? T : typeof util.TextEncoder;
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -13,40 +13,68 @@
|
|
|
13
13
|
******************************************************************************/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// Make this a module
|
|
17
16
|
export {};
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
type _AddEventListenerOptions = typeof globalThis extends { onmessage: any } ? {} : AddEventListenerOptions;
|
|
19
|
+
interface AddEventListenerOptions extends EventListenerOptions {
|
|
20
|
+
once?: boolean;
|
|
21
|
+
passive?: boolean;
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
}
|
|
21
24
|
|
|
22
|
-
type
|
|
25
|
+
type _CustomEvent<T = any> = typeof globalThis extends { onmessage: any } ? {} : CustomEvent<T>;
|
|
26
|
+
interface CustomEvent<T = any> extends Event {
|
|
27
|
+
readonly detail: T;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface CustomEventInit<T = any> extends EventInit {
|
|
31
|
+
detail?: T;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type _Event = typeof globalThis extends { onmessage: any } ? {} : Event;
|
|
23
35
|
interface Event {
|
|
24
36
|
readonly bubbles: boolean;
|
|
25
37
|
cancelBubble: boolean;
|
|
26
38
|
readonly cancelable: boolean;
|
|
27
39
|
readonly composed: boolean;
|
|
28
|
-
composedPath(): [EventTarget?];
|
|
29
40
|
readonly currentTarget: EventTarget | null;
|
|
30
41
|
readonly defaultPrevented: boolean;
|
|
31
42
|
readonly eventPhase: 0 | 2;
|
|
32
|
-
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
33
43
|
readonly isTrusted: boolean;
|
|
34
|
-
|
|
35
|
-
readonly returnValue: boolean;
|
|
44
|
+
returnValue: boolean;
|
|
36
45
|
readonly srcElement: EventTarget | null;
|
|
37
|
-
stopImmediatePropagation(): void;
|
|
38
|
-
stopPropagation(): void;
|
|
39
46
|
readonly target: EventTarget | null;
|
|
40
47
|
readonly timeStamp: number;
|
|
41
48
|
readonly type: string;
|
|
49
|
+
composedPath(): [EventTarget?];
|
|
50
|
+
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
51
|
+
preventDefault(): void;
|
|
52
|
+
stopImmediatePropagation(): void;
|
|
53
|
+
stopPropagation(): void;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
interface EventInit {
|
|
57
|
+
bubbles?: boolean;
|
|
58
|
+
cancelable?: boolean;
|
|
59
|
+
composed?: boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type _EventListener = typeof globalThis extends { onmessage: any } ? {} : EventListener;
|
|
63
|
+
interface EventListener {
|
|
64
|
+
(evt: Event): void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type _EventListenerObject = typeof globalThis extends { onmessage: any } ? {} : EventListenerObject;
|
|
68
|
+
interface EventListenerObject {
|
|
69
|
+
handleEvent(object: Event): void;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
type _EventListenerOptions = typeof globalThis extends { onmessage: any } ? {} : EventListenerOptions;
|
|
73
|
+
interface EventListenerOptions {
|
|
74
|
+
capture?: boolean;
|
|
47
75
|
}
|
|
48
76
|
|
|
49
|
-
type
|
|
77
|
+
type _EventTarget = typeof globalThis extends { onmessage: any } ? {} : EventTarget;
|
|
50
78
|
interface EventTarget {
|
|
51
79
|
addEventListener(
|
|
52
80
|
type: string,
|
|
@@ -61,51 +89,30 @@ interface EventTarget {
|
|
|
61
89
|
): void;
|
|
62
90
|
}
|
|
63
91
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
cancelable?: boolean;
|
|
67
|
-
composed?: boolean;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface CustomEventInit<T = any> extends EventInit {
|
|
71
|
-
detail?: T;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface EventListenerOptions {
|
|
75
|
-
capture?: boolean;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface AddEventListenerOptions extends EventListenerOptions {
|
|
79
|
-
once?: boolean;
|
|
80
|
-
passive?: boolean;
|
|
81
|
-
signal?: AbortSignal;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface EventListener {
|
|
85
|
-
(evt: Event): void;
|
|
86
|
-
}
|
|
92
|
+
declare global {
|
|
93
|
+
interface AddEventListenerOptions extends _AddEventListenerOptions {}
|
|
87
94
|
|
|
88
|
-
interface
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
interface CustomEvent<T = any> extends _CustomEvent<T> {}
|
|
96
|
+
var CustomEvent: typeof globalThis extends { onmessage: any; CustomEvent: infer T } ? T
|
|
97
|
+
: {
|
|
98
|
+
prototype: CustomEvent;
|
|
99
|
+
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
100
|
+
};
|
|
91
101
|
|
|
92
|
-
|
|
93
|
-
declare global {
|
|
94
|
-
interface Event extends __Event {}
|
|
102
|
+
interface Event extends _Event {}
|
|
95
103
|
var Event: typeof globalThis extends { onmessage: any; Event: infer T } ? T
|
|
96
104
|
: {
|
|
97
105
|
prototype: Event;
|
|
98
106
|
new(type: string, eventInitDict?: EventInit): Event;
|
|
99
107
|
};
|
|
100
108
|
|
|
101
|
-
interface
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
109
|
+
interface EventListener extends _EventListener {}
|
|
110
|
+
|
|
111
|
+
interface EventListenerObject extends _EventListenerObject {}
|
|
112
|
+
|
|
113
|
+
interface EventListenerOptions extends _EventListenerOptions {}
|
|
107
114
|
|
|
108
|
-
interface EventTarget extends
|
|
115
|
+
interface EventTarget extends _EventTarget {}
|
|
109
116
|
var EventTarget: typeof globalThis extends { onmessage: any; EventTarget: infer T } ? T
|
|
110
117
|
: {
|
|
111
118
|
prototype: EventTarget;
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import * as undici from '../undici-types';
|
|
19
|
+
|
|
20
|
+
type _CloseEvent = typeof globalThis extends { onmessage: any } ? {} : undici.CloseEvent;
|
|
21
|
+
type _ErrorEvent = typeof globalThis extends { onmessage: any } ? {} : undici.ErrorEvent;
|
|
22
|
+
type _EventSource = typeof globalThis extends { onmessage: any } ? {} : undici.EventSource;
|
|
23
|
+
type _FormData = typeof globalThis extends { onmessage: any } ? {} : undici.FormData;
|
|
24
|
+
type _Headers = typeof globalThis extends { onmessage: any } ? {} : undici.Headers;
|
|
25
|
+
type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : undici.MessageEvent;
|
|
26
|
+
type _Request = typeof globalThis extends { onmessage: any } ? {} : undici.Request;
|
|
27
|
+
type _RequestInit = typeof globalThis extends { onmessage: any } ? {} : undici.RequestInit;
|
|
28
|
+
type _Response = typeof globalThis extends { onmessage: any } ? {} : undici.Response;
|
|
29
|
+
type _ResponseInit = typeof globalThis extends { onmessage: any } ? {} : undici.ResponseInit;
|
|
30
|
+
type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : undici.WebSocket;
|
|
31
|
+
|
|
32
|
+
declare global {
|
|
33
|
+
function fetch(
|
|
34
|
+
input: string | URL | Request,
|
|
35
|
+
init?: RequestInit,
|
|
36
|
+
): Promise<Response>;
|
|
37
|
+
|
|
38
|
+
interface CloseEvent extends _CloseEvent {}
|
|
39
|
+
var CloseEvent: typeof globalThis extends { onmessage: any; CloseEvent: infer T } ? T : typeof undici.CloseEvent;
|
|
40
|
+
|
|
41
|
+
interface ErrorEvent extends _ErrorEvent {}
|
|
42
|
+
var ErrorEvent: typeof globalThis extends { onmessage: any; ErrorEvent: infer T } ? T : typeof undici.ErrorEvent;
|
|
43
|
+
|
|
44
|
+
interface EventSource extends _EventSource {}
|
|
45
|
+
var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T : typeof undici.EventSource;
|
|
46
|
+
|
|
47
|
+
interface FormData extends _FormData {}
|
|
48
|
+
var FormData: typeof globalThis extends { onmessage: any; FormData: infer T } ? T : typeof undici.FormData;
|
|
49
|
+
|
|
50
|
+
interface Headers extends _Headers {}
|
|
51
|
+
var Headers: typeof globalThis extends { onmessage: any; Headers: infer T } ? T : typeof undici.Headers;
|
|
52
|
+
|
|
53
|
+
interface MessageEvent extends _MessageEvent {}
|
|
54
|
+
var MessageEvent: typeof globalThis extends { onmessage: any; MessageEvent: infer T } ? T
|
|
55
|
+
: typeof undici.MessageEvent;
|
|
56
|
+
|
|
57
|
+
interface Request extends _Request {}
|
|
58
|
+
var Request: typeof globalThis extends { onmessage: any; Request: infer T } ? T : typeof undici.Request;
|
|
59
|
+
|
|
60
|
+
interface RequestInit extends _RequestInit {}
|
|
61
|
+
|
|
62
|
+
interface Response extends _Response {}
|
|
63
|
+
var Response: typeof globalThis extends { onmessage: any; Response: infer T } ? T : typeof undici.Response;
|
|
64
|
+
|
|
65
|
+
interface ResponseInit extends _ResponseInit {}
|
|
66
|
+
|
|
67
|
+
interface WebSocket extends _WebSocket {}
|
|
68
|
+
var WebSocket: typeof globalThis extends { onmessage: any; WebSocket: infer T } ? T : typeof undici.WebSocket;
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import { URL } from 'node:url';
|
|
19
|
+
|
|
20
|
+
declare global {
|
|
21
|
+
interface ImportMeta {
|
|
22
|
+
dirname: string;
|
|
23
|
+
filename: string;
|
|
24
|
+
main: boolean;
|
|
25
|
+
url: string;
|
|
26
|
+
resolve(specifier: string, parent?: string | URL): string;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import * as worker_threads from 'node:worker_threads';
|
|
19
|
+
|
|
20
|
+
type _BroadcastChannel = typeof globalThis extends { onmessage: any } ? {} : worker_threads.BroadcastChannel;
|
|
21
|
+
type _MessageChannel = typeof globalThis extends { onmessage: any } ? {} : worker_threads.MessageChannel;
|
|
22
|
+
type _MessagePort = typeof globalThis extends { onmessage: any } ? {} : worker_threads.MessagePort;
|
|
23
|
+
|
|
24
|
+
declare global {
|
|
25
|
+
function structuredClone<T = any>(value: T, options?: worker_threads.StructuredSerializeOptions): T;
|
|
26
|
+
|
|
27
|
+
interface BroadcastChannel extends _BroadcastChannel {}
|
|
28
|
+
var BroadcastChannel: typeof globalThis extends { onmessage: any; BroadcastChannel: infer T } ? T
|
|
29
|
+
: typeof worker_threads.BroadcastChannel;
|
|
30
|
+
|
|
31
|
+
interface MessageChannel extends _MessageChannel {}
|
|
32
|
+
var MessageChannel: typeof globalThis extends { onmessage: any; MessageChannel: infer T } ? T
|
|
33
|
+
: typeof worker_threads.MessageChannel;
|
|
34
|
+
|
|
35
|
+
interface MessagePort extends _MessagePort {}
|
|
36
|
+
var MessagePort: typeof globalThis extends { onmessage: any; MessagePort: infer T } ? T
|
|
37
|
+
: typeof worker_threads.MessagePort;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
import { LockManager } from 'node:worker_threads';
|
|
19
|
+
|
|
20
|
+
// lib.webworker has `WorkerNavigator` rather than `Navigator`, so conditionals use `onabort` instead of `onmessage`
|
|
21
|
+
type _Navigator = typeof globalThis extends { onabort: any } ? {} : Navigator;
|
|
22
|
+
interface Navigator {
|
|
23
|
+
readonly hardwareConcurrency: number;
|
|
24
|
+
readonly language: string;
|
|
25
|
+
readonly languages: readonly string[];
|
|
26
|
+
readonly locks: LockManager;
|
|
27
|
+
readonly platform: string;
|
|
28
|
+
readonly userAgent: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare global {
|
|
32
|
+
interface Navigator extends _Navigator {}
|
|
33
|
+
var Navigator: typeof globalThis extends { onabort: any; Navigator: infer T } ? T : {
|
|
34
|
+
prototype: Navigator;
|
|
35
|
+
new(): Navigator;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// Needs conditional inference for lib.dom and lib.webworker compatibility
|
|
39
|
+
var navigator: typeof globalThis extends { onmessage: any; navigator: infer T } ? T : Navigator;
|
|
40
|
+
}
|
|
41
|
+
|