@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/v8.d.ts
CHANGED
|
@@ -1,13 +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
|
+
|
|
1
16
|
/**
|
|
2
17
|
* The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
|
|
3
18
|
*
|
|
4
19
|
* ```js
|
|
5
20
|
* import v8 from 'node:v8';
|
|
6
21
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
22
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/v8.js)
|
|
8
23
|
*/
|
|
9
24
|
|
|
10
25
|
declare module "node:v8" {
|
|
26
|
+
import { NonSharedBuffer } from 'node:buffer';
|
|
11
27
|
import { Readable } from 'node:stream';
|
|
12
28
|
interface HeapSpaceInfo {
|
|
13
29
|
space_name: string;
|
|
@@ -44,12 +60,12 @@ declare module "node:v8" {
|
|
|
44
60
|
* If true, expose internals in the heap snapshot.
|
|
45
61
|
* @default false
|
|
46
62
|
*/
|
|
47
|
-
exposeInternals?: boolean;
|
|
63
|
+
exposeInternals?: boolean | undefined;
|
|
48
64
|
/**
|
|
49
65
|
* If true, expose numeric values in artificial fields.
|
|
50
66
|
* @default false
|
|
51
67
|
*/
|
|
52
|
-
exposeNumericValues?: boolean;
|
|
68
|
+
exposeNumericValues?: boolean | undefined;
|
|
53
69
|
}
|
|
54
70
|
/**
|
|
55
71
|
* Returns an integer representing a version tag derived from the V8 version,
|
|
@@ -401,6 +417,65 @@ declare module "node:v8" {
|
|
|
401
417
|
* @since v12.8.0
|
|
402
418
|
*/
|
|
403
419
|
function getHeapCodeStatistics(): HeapCodeStatistics;
|
|
420
|
+
/**
|
|
421
|
+
* @since v25.0.0
|
|
422
|
+
*/
|
|
423
|
+
interface SyncCPUProfileHandle {
|
|
424
|
+
/**
|
|
425
|
+
* Stopping collecting the profile and return the profile data.
|
|
426
|
+
* @since v25.0.0
|
|
427
|
+
*/
|
|
428
|
+
stop(): string;
|
|
429
|
+
/**
|
|
430
|
+
* Stopping collecting the profile and the profile will be discarded.
|
|
431
|
+
* @since v25.0.0
|
|
432
|
+
*/
|
|
433
|
+
[Symbol.dispose](): void;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* @since v24.8.0
|
|
437
|
+
*/
|
|
438
|
+
interface CPUProfileHandle {
|
|
439
|
+
/**
|
|
440
|
+
* Stopping collecting the profile, then return a Promise that fulfills with an error or the
|
|
441
|
+
* profile data.
|
|
442
|
+
* @since v24.8.0
|
|
443
|
+
*/
|
|
444
|
+
stop(): Promise<string>;
|
|
445
|
+
/**
|
|
446
|
+
* Stopping collecting the profile and the profile will be discarded.
|
|
447
|
+
* @since v24.8.0
|
|
448
|
+
*/
|
|
449
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @since v24.9.0
|
|
453
|
+
*/
|
|
454
|
+
interface HeapProfileHandle {
|
|
455
|
+
/**
|
|
456
|
+
* Stopping collecting the profile, then return a Promise that fulfills with an error or the
|
|
457
|
+
* profile data.
|
|
458
|
+
* @since v24.9.0
|
|
459
|
+
*/
|
|
460
|
+
stop(): Promise<string>;
|
|
461
|
+
/**
|
|
462
|
+
* Stopping collecting the profile and the profile will be discarded.
|
|
463
|
+
* @since v24.9.0
|
|
464
|
+
*/
|
|
465
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Starting a CPU profile then return a `SyncCPUProfileHandle` object.
|
|
469
|
+
* This API supports `using` syntax.
|
|
470
|
+
*
|
|
471
|
+
* ```js
|
|
472
|
+
* const handle = v8.startCpuProfile();
|
|
473
|
+
* const profile = handle.stop();
|
|
474
|
+
* console.log(profile);
|
|
475
|
+
* ```
|
|
476
|
+
* @since v25.0.0
|
|
477
|
+
*/
|
|
478
|
+
function startCPUProfile(): SyncCPUProfileHandle;
|
|
404
479
|
/**
|
|
405
480
|
* V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
|
|
406
481
|
* If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
|
|
@@ -454,7 +529,7 @@ declare module "node:v8" {
|
|
|
454
529
|
* the buffer is released. Calling this method results in undefined behavior
|
|
455
530
|
* if a previous write has failed.
|
|
456
531
|
*/
|
|
457
|
-
releaseBuffer():
|
|
532
|
+
releaseBuffer(): NonSharedBuffer;
|
|
458
533
|
/**
|
|
459
534
|
* Marks an `ArrayBuffer` as having its contents transferred out of band.
|
|
460
535
|
* Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
|
|
@@ -482,7 +557,7 @@ declare module "node:v8" {
|
|
|
482
557
|
* will require a way to compute the length of the buffer.
|
|
483
558
|
* For use inside of a custom `serializer._writeHostObject()`.
|
|
484
559
|
*/
|
|
485
|
-
writeRawBytes(buffer: NodeJS.
|
|
560
|
+
writeRawBytes(buffer: NodeJS.ArrayBufferView): void;
|
|
486
561
|
}
|
|
487
562
|
/**
|
|
488
563
|
* A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
|
|
@@ -553,7 +628,7 @@ declare module "node:v8" {
|
|
|
553
628
|
* larger than `buffer.constants.MAX_LENGTH`.
|
|
554
629
|
* @since v8.0.0
|
|
555
630
|
*/
|
|
556
|
-
function serialize(value: any):
|
|
631
|
+
function serialize(value: any): NonSharedBuffer;
|
|
557
632
|
/**
|
|
558
633
|
* Uses a `DefaultDeserializer` with default options to read a JS value
|
|
559
634
|
* from a buffer.
|
|
@@ -581,7 +656,7 @@ declare module "node:v8" {
|
|
|
581
656
|
function stopCoverage(): void;
|
|
582
657
|
/**
|
|
583
658
|
* The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once.
|
|
584
|
-
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-
|
|
659
|
+
* `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
|
|
585
660
|
* @since v18.10.0, v16.18.0
|
|
586
661
|
*/
|
|
587
662
|
function setHeapSnapshotNearHeapLimit(limit: number): void;
|