@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/v8.d.ts
CHANGED
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
* ```js
|
|
20
20
|
* import v8 from 'node:v8';
|
|
21
21
|
* ```
|
|
22
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
22
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/v8.js)
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
declare module "node:v8" {
|
|
26
|
+
import { NonSharedBuffer } from 'node:buffer';
|
|
26
27
|
import { Readable } from 'node:stream';
|
|
27
28
|
interface HeapSpaceInfo {
|
|
28
29
|
space_name: string;
|
|
@@ -59,12 +60,12 @@ declare module "node:v8" {
|
|
|
59
60
|
* If true, expose internals in the heap snapshot.
|
|
60
61
|
* @default false
|
|
61
62
|
*/
|
|
62
|
-
exposeInternals?: boolean;
|
|
63
|
+
exposeInternals?: boolean | undefined;
|
|
63
64
|
/**
|
|
64
65
|
* If true, expose numeric values in artificial fields.
|
|
65
66
|
* @default false
|
|
66
67
|
*/
|
|
67
|
-
exposeNumericValues?: boolean;
|
|
68
|
+
exposeNumericValues?: boolean | undefined;
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
71
|
* Returns an integer representing a version tag derived from the V8 version,
|
|
@@ -416,6 +417,65 @@ declare module "node:v8" {
|
|
|
416
417
|
* @since v12.8.0
|
|
417
418
|
*/
|
|
418
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;
|
|
419
479
|
/**
|
|
420
480
|
* V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
|
|
421
481
|
* If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
|
|
@@ -469,7 +529,7 @@ declare module "node:v8" {
|
|
|
469
529
|
* the buffer is released. Calling this method results in undefined behavior
|
|
470
530
|
* if a previous write has failed.
|
|
471
531
|
*/
|
|
472
|
-
releaseBuffer():
|
|
532
|
+
releaseBuffer(): NonSharedBuffer;
|
|
473
533
|
/**
|
|
474
534
|
* Marks an `ArrayBuffer` as having its contents transferred out of band.
|
|
475
535
|
* Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
|
|
@@ -497,7 +557,7 @@ declare module "node:v8" {
|
|
|
497
557
|
* will require a way to compute the length of the buffer.
|
|
498
558
|
* For use inside of a custom `serializer._writeHostObject()`.
|
|
499
559
|
*/
|
|
500
|
-
writeRawBytes(buffer: NodeJS.
|
|
560
|
+
writeRawBytes(buffer: NodeJS.ArrayBufferView): void;
|
|
501
561
|
}
|
|
502
562
|
/**
|
|
503
563
|
* A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
|
|
@@ -568,7 +628,7 @@ declare module "node:v8" {
|
|
|
568
628
|
* larger than `buffer.constants.MAX_LENGTH`.
|
|
569
629
|
* @since v8.0.0
|
|
570
630
|
*/
|
|
571
|
-
function serialize(value: any):
|
|
631
|
+
function serialize(value: any): NonSharedBuffer;
|
|
572
632
|
/**
|
|
573
633
|
* Uses a `DefaultDeserializer` with default options to read a JS value
|
|
574
634
|
* from a buffer.
|
|
@@ -596,7 +656,7 @@ declare module "node:v8" {
|
|
|
596
656
|
function stopCoverage(): void;
|
|
597
657
|
/**
|
|
598
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.
|
|
599
|
-
* `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.
|
|
600
660
|
* @since v18.10.0, v16.18.0
|
|
601
661
|
*/
|
|
602
662
|
function setHeapSnapshotNearHeapLimit(limit: number): void;
|