@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
package/string_decoder.d.ts
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* decoder.write(Buffer.from([0x82]));
|
|
52
52
|
* console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
|
|
53
53
|
* ```
|
|
54
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
54
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/string_decoder.js)
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
57
|
declare module "node:string_decoder" {
|
|
@@ -64,7 +64,7 @@ declare module "node:string_decoder" {
|
|
|
64
64
|
* @since v0.1.99
|
|
65
65
|
* @param buffer The bytes to decode.
|
|
66
66
|
*/
|
|
67
|
-
write(buffer: string |
|
|
67
|
+
write(buffer: string | NodeJS.ArrayBufferView): string;
|
|
68
68
|
/**
|
|
69
69
|
* Returns any remaining input stored in the internal buffer as a string. Bytes
|
|
70
70
|
* representing incomplete UTF-8 and UTF-16 characters will be replaced with
|
|
@@ -75,6 +75,6 @@ declare module "node:string_decoder" {
|
|
|
75
75
|
* @since v0.9.3
|
|
76
76
|
* @param buffer The bytes to decode.
|
|
77
77
|
*/
|
|
78
|
-
end(buffer?: string |
|
|
78
|
+
end(buffer?: string | NodeJS.ArrayBufferView): string;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* The `node:test` module supports passing `--test-reporter`
|
|
18
|
+
* flags for the test runner to use a specific reporter.
|
|
19
|
+
*
|
|
20
|
+
* The following built-reporters are supported:
|
|
21
|
+
*
|
|
22
|
+
* * `spec`
|
|
23
|
+
* The `spec` reporter outputs the test results in a human-readable format. This
|
|
24
|
+
* is the default reporter.
|
|
25
|
+
*
|
|
26
|
+
* * `tap`
|
|
27
|
+
* The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format.
|
|
28
|
+
*
|
|
29
|
+
* * `dot`
|
|
30
|
+
* The `dot` reporter outputs the test results in a compact format,
|
|
31
|
+
* where each passing test is represented by a `.`,
|
|
32
|
+
* and each failing test is represented by a `X`.
|
|
33
|
+
*
|
|
34
|
+
* * `junit`
|
|
35
|
+
* The junit reporter outputs test results in a jUnit XML format
|
|
36
|
+
*
|
|
37
|
+
* * `lcov`
|
|
38
|
+
* The `lcov` reporter outputs test coverage when used with the
|
|
39
|
+
* `--experimental-test-coverage` flag.
|
|
40
|
+
*
|
|
41
|
+
* The exact output of these reporters is subject to change between versions of
|
|
42
|
+
* Node.js, and should not be relied on programmatically. If programmatic access
|
|
43
|
+
* to the test runner's output is required, use the events emitted by the
|
|
44
|
+
* `TestsStream`.
|
|
45
|
+
*
|
|
46
|
+
* The reporters are available via the `node:test/reporters` module:
|
|
47
|
+
*
|
|
48
|
+
* ```js
|
|
49
|
+
* import { tap, spec, dot, junit, lcov } from 'node:test/reporters';
|
|
50
|
+
* ```
|
|
51
|
+
* @since v19.9.0, v18.17.0
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/test/reporters.js)
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
declare module "node:test/reporters" {
|
|
56
|
+
import { Transform, TransformOptions } from 'node:stream';
|
|
57
|
+
import { EventData } from 'node:test';
|
|
58
|
+
type TestEvent =
|
|
59
|
+
| { type: "test:coverage"; data: EventData.TestCoverage }
|
|
60
|
+
| { type: "test:complete"; data: EventData.TestComplete }
|
|
61
|
+
| { type: "test:dequeue"; data: EventData.TestDequeue }
|
|
62
|
+
| { type: "test:diagnostic"; data: EventData.TestDiagnostic }
|
|
63
|
+
| { type: "test:enqueue"; data: EventData.TestEnqueue }
|
|
64
|
+
| { type: "test:fail"; data: EventData.TestFail }
|
|
65
|
+
| { type: "test:pass"; data: EventData.TestPass }
|
|
66
|
+
| { type: "test:plan"; data: EventData.TestPlan }
|
|
67
|
+
| { type: "test:start"; data: EventData.TestStart }
|
|
68
|
+
| { type: "test:stderr"; data: EventData.TestStderr }
|
|
69
|
+
| { type: "test:stdout"; data: EventData.TestStdout }
|
|
70
|
+
| { type: "test:summary"; data: EventData.TestSummary }
|
|
71
|
+
| { type: "test:watch:drained"; data: undefined }
|
|
72
|
+
| { type: "test:watch:restarted"; data: undefined };
|
|
73
|
+
interface ReporterConstructorWrapper<T extends new(...args: any[]) => Transform> {
|
|
74
|
+
new(...args: ConstructorParameters<T>): InstanceType<T>;
|
|
75
|
+
(...args: ConstructorParameters<T>): InstanceType<T>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The `dot` reporter outputs the test results in a compact format,
|
|
79
|
+
* where each passing test is represented by a `.`,
|
|
80
|
+
* and each failing test is represented by a `X`.
|
|
81
|
+
* @since v20.0.0
|
|
82
|
+
*/
|
|
83
|
+
function dot(source: AsyncIterable<TestEvent>): NodeJS.AsyncIterator<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format.
|
|
86
|
+
* @since v20.0.0
|
|
87
|
+
*/
|
|
88
|
+
function tap(source: AsyncIterable<TestEvent>): NodeJS.AsyncIterator<string>;
|
|
89
|
+
class SpecReporter extends Transform {
|
|
90
|
+
constructor();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The `spec` reporter outputs the test results in a human-readable format.
|
|
94
|
+
* @since v20.0.0
|
|
95
|
+
*/
|
|
96
|
+
const spec: ReporterConstructorWrapper<typeof SpecReporter>;
|
|
97
|
+
/**
|
|
98
|
+
* The `junit` reporter outputs test results in a jUnit XML format.
|
|
99
|
+
* @since v21.0.0
|
|
100
|
+
*/
|
|
101
|
+
function junit(source: AsyncIterable<TestEvent>): NodeJS.AsyncIterator<string>;
|
|
102
|
+
class LcovReporter extends Transform {
|
|
103
|
+
constructor(options?: Omit<TransformOptions, "writableObjectMode">);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The `lcov` reporter outputs test coverage when used with the
|
|
107
|
+
* [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--experimental-test-coverage) flag.
|
|
108
|
+
* @since v22.0.0
|
|
109
|
+
*/
|
|
110
|
+
const lcov: ReporterConstructorWrapper<typeof LcovReporter>;
|
|
111
|
+
export { dot, junit, lcov, spec, tap, TestEvent };
|
|
112
|
+
}
|