@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/zlib.d.ts
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
26
26
|
* Compression and decompression are built around the Node.js
|
|
27
|
-
* [Streams API](https://nodejs.org/docs/latest-
|
|
27
|
+
* [Streams API](https://nodejs.org/docs/latest-v25.x/api/stream.html).
|
|
28
28
|
*
|
|
29
29
|
* Compressing or decompressing a stream (such as a file) can be accomplished by
|
|
30
30
|
* piping the source stream through a `zlib` `Transform` stream into a destination
|
|
@@ -104,10 +104,11 @@
|
|
|
104
104
|
* });
|
|
105
105
|
* ```
|
|
106
106
|
* @since v0.5.8
|
|
107
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
107
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/zlib.js)
|
|
108
108
|
*/
|
|
109
109
|
|
|
110
110
|
declare module "node:zlib" {
|
|
111
|
+
import { NonSharedBuffer } from 'node:buffer';
|
|
111
112
|
import * as stream from 'node:stream';
|
|
112
113
|
interface ZlibOptions {
|
|
113
114
|
/**
|
|
@@ -159,10 +160,14 @@ declare module "node:zlib" {
|
|
|
159
160
|
}
|
|
160
161
|
| undefined;
|
|
161
162
|
/**
|
|
162
|
-
* Limits output size when using [convenience methods](https://nodejs.org/docs/latest-
|
|
163
|
+
* Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v25.x/api/zlib.html#convenience-methods).
|
|
163
164
|
* @default buffer.kMaxLength
|
|
164
165
|
*/
|
|
165
166
|
maxOutputLength?: number | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* If `true`, returns an object with `buffer` and `engine`.
|
|
169
|
+
*/
|
|
170
|
+
info?: boolean | undefined;
|
|
166
171
|
}
|
|
167
172
|
interface ZstdOptions {
|
|
168
173
|
/**
|
|
@@ -179,15 +184,25 @@ declare module "node:zlib" {
|
|
|
179
184
|
chunkSize?: number | undefined;
|
|
180
185
|
/**
|
|
181
186
|
* Key-value object containing indexed
|
|
182
|
-
* [Zstd parameters](https://nodejs.org/docs/latest-
|
|
187
|
+
* [Zstd parameters](https://nodejs.org/docs/latest-v25.x/api/zlib.html#zstd-constants).
|
|
183
188
|
*/
|
|
184
189
|
params?: { [key: number]: number | boolean } | undefined;
|
|
185
190
|
/**
|
|
186
191
|
* Limits output size when using
|
|
187
|
-
* [convenience methods](https://nodejs.org/docs/latest-
|
|
192
|
+
* [convenience methods](https://nodejs.org/docs/latest-v25.x/api/zlib.html#convenience-methods).
|
|
188
193
|
* @default buffer.kMaxLength
|
|
189
194
|
*/
|
|
190
195
|
maxOutputLength?: number | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, returns an object with `buffer` and `engine`.
|
|
198
|
+
*/
|
|
199
|
+
info?: boolean | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Optional dictionary used to improve compression efficiency when compressing or decompressing data that
|
|
202
|
+
* shares common patterns with the dictionary.
|
|
203
|
+
* @since v24.6.0
|
|
204
|
+
*/
|
|
205
|
+
dictionary?: NodeJS.ArrayBufferView | undefined;
|
|
191
206
|
}
|
|
192
207
|
interface Zlib {
|
|
193
208
|
readonly bytesWritten: number;
|
|
@@ -229,7 +244,7 @@ declare module "node:zlib" {
|
|
|
229
244
|
* @returns A 32-bit unsigned integer containing the checksum.
|
|
230
245
|
* @since v22.2.0
|
|
231
246
|
*/
|
|
232
|
-
function crc32(data: string |
|
|
247
|
+
function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
|
|
233
248
|
/**
|
|
234
249
|
* Creates and returns a new `BrotliCompress` object.
|
|
235
250
|
* @since v11.7.0, v10.16.0
|
|
@@ -293,124 +308,124 @@ declare module "node:zlib" {
|
|
|
293
308
|
*/
|
|
294
309
|
function createZstdDecompress(options?: ZstdOptions): ZstdDecompress;
|
|
295
310
|
type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
|
|
296
|
-
type CompressCallback = (error: Error | null, result:
|
|
311
|
+
type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
|
|
297
312
|
/**
|
|
298
313
|
* @since v11.7.0, v10.16.0
|
|
299
314
|
*/
|
|
300
315
|
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
301
316
|
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
|
302
317
|
namespace brotliCompress {
|
|
303
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<
|
|
318
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
|
|
304
319
|
}
|
|
305
320
|
/**
|
|
306
321
|
* Compress a chunk of data with `BrotliCompress`.
|
|
307
322
|
* @since v11.7.0, v10.16.0
|
|
308
323
|
*/
|
|
309
|
-
function brotliCompressSync(buf: InputType, options?: BrotliOptions):
|
|
324
|
+
function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
|
|
310
325
|
/**
|
|
311
326
|
* @since v11.7.0, v10.16.0
|
|
312
327
|
*/
|
|
313
328
|
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
314
329
|
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
|
315
330
|
namespace brotliDecompress {
|
|
316
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<
|
|
331
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
|
|
317
332
|
}
|
|
318
333
|
/**
|
|
319
334
|
* Decompress a chunk of data with `BrotliDecompress`.
|
|
320
335
|
* @since v11.7.0, v10.16.0
|
|
321
336
|
*/
|
|
322
|
-
function brotliDecompressSync(buf: InputType, options?: BrotliOptions):
|
|
337
|
+
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
|
|
323
338
|
/**
|
|
324
339
|
* @since v0.6.0
|
|
325
340
|
*/
|
|
326
341
|
function deflate(buf: InputType, callback: CompressCallback): void;
|
|
327
342
|
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
328
343
|
namespace deflate {
|
|
329
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
344
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
330
345
|
}
|
|
331
346
|
/**
|
|
332
347
|
* Compress a chunk of data with `Deflate`.
|
|
333
348
|
* @since v0.11.12
|
|
334
349
|
*/
|
|
335
|
-
function deflateSync(buf: InputType, options?: ZlibOptions):
|
|
350
|
+
function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
336
351
|
/**
|
|
337
352
|
* @since v0.6.0
|
|
338
353
|
*/
|
|
339
354
|
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
340
355
|
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
341
356
|
namespace deflateRaw {
|
|
342
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
357
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
343
358
|
}
|
|
344
359
|
/**
|
|
345
360
|
* Compress a chunk of data with `DeflateRaw`.
|
|
346
361
|
* @since v0.11.12
|
|
347
362
|
*/
|
|
348
|
-
function deflateRawSync(buf: InputType, options?: ZlibOptions):
|
|
363
|
+
function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
349
364
|
/**
|
|
350
365
|
* @since v0.6.0
|
|
351
366
|
*/
|
|
352
367
|
function gzip(buf: InputType, callback: CompressCallback): void;
|
|
353
368
|
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
354
369
|
namespace gzip {
|
|
355
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
370
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
356
371
|
}
|
|
357
372
|
/**
|
|
358
373
|
* Compress a chunk of data with `Gzip`.
|
|
359
374
|
* @since v0.11.12
|
|
360
375
|
*/
|
|
361
|
-
function gzipSync(buf: InputType, options?: ZlibOptions):
|
|
376
|
+
function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
362
377
|
/**
|
|
363
378
|
* @since v0.6.0
|
|
364
379
|
*/
|
|
365
380
|
function gunzip(buf: InputType, callback: CompressCallback): void;
|
|
366
381
|
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
367
382
|
namespace gunzip {
|
|
368
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
383
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
369
384
|
}
|
|
370
385
|
/**
|
|
371
386
|
* Decompress a chunk of data with `Gunzip`.
|
|
372
387
|
* @since v0.11.12
|
|
373
388
|
*/
|
|
374
|
-
function gunzipSync(buf: InputType, options?: ZlibOptions):
|
|
389
|
+
function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
375
390
|
/**
|
|
376
391
|
* @since v0.6.0
|
|
377
392
|
*/
|
|
378
393
|
function inflate(buf: InputType, callback: CompressCallback): void;
|
|
379
394
|
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
380
395
|
namespace inflate {
|
|
381
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
396
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
382
397
|
}
|
|
383
398
|
/**
|
|
384
399
|
* Decompress a chunk of data with `Inflate`.
|
|
385
400
|
* @since v0.11.12
|
|
386
401
|
*/
|
|
387
|
-
function inflateSync(buf: InputType, options?: ZlibOptions):
|
|
402
|
+
function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
388
403
|
/**
|
|
389
404
|
* @since v0.6.0
|
|
390
405
|
*/
|
|
391
406
|
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
392
407
|
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
393
408
|
namespace inflateRaw {
|
|
394
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
409
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
395
410
|
}
|
|
396
411
|
/**
|
|
397
412
|
* Decompress a chunk of data with `InflateRaw`.
|
|
398
413
|
* @since v0.11.12
|
|
399
414
|
*/
|
|
400
|
-
function inflateRawSync(buf: InputType, options?: ZlibOptions):
|
|
415
|
+
function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
401
416
|
/**
|
|
402
417
|
* @since v0.6.0
|
|
403
418
|
*/
|
|
404
419
|
function unzip(buf: InputType, callback: CompressCallback): void;
|
|
405
420
|
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
406
421
|
namespace unzip {
|
|
407
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
422
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
408
423
|
}
|
|
409
424
|
/**
|
|
410
425
|
* Decompress a chunk of data with `Unzip`.
|
|
411
426
|
* @since v0.11.12
|
|
412
427
|
*/
|
|
413
|
-
function unzipSync(buf: InputType, options?: ZlibOptions):
|
|
428
|
+
function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
414
429
|
/**
|
|
415
430
|
* @since v22.15.0
|
|
416
431
|
* @experimental
|
|
@@ -418,14 +433,14 @@ declare module "node:zlib" {
|
|
|
418
433
|
function zstdCompress(buf: InputType, callback: CompressCallback): void;
|
|
419
434
|
function zstdCompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
|
|
420
435
|
namespace zstdCompress {
|
|
421
|
-
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<
|
|
436
|
+
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
|
|
422
437
|
}
|
|
423
438
|
/**
|
|
424
439
|
* Compress a chunk of data with `ZstdCompress`.
|
|
425
440
|
* @since v22.15.0
|
|
426
441
|
* @experimental
|
|
427
442
|
*/
|
|
428
|
-
function zstdCompressSync(buf: InputType, options?: ZstdOptions):
|
|
443
|
+
function zstdCompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
|
|
429
444
|
/**
|
|
430
445
|
* @since v22.15.0
|
|
431
446
|
* @experimental
|
|
@@ -433,14 +448,14 @@ declare module "node:zlib" {
|
|
|
433
448
|
function zstdDecompress(buf: InputType, callback: CompressCallback): void;
|
|
434
449
|
function zstdDecompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
|
|
435
450
|
namespace zstdDecompress {
|
|
436
|
-
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<
|
|
451
|
+
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
|
|
437
452
|
}
|
|
438
453
|
/**
|
|
439
454
|
* Decompress a chunk of data with `ZstdDecompress`.
|
|
440
455
|
* @since v22.15.0
|
|
441
456
|
* @experimental
|
|
442
457
|
*/
|
|
443
|
-
function zstdDecompressSync(buf: InputType, options?: ZstdOptions):
|
|
458
|
+
function zstdDecompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
|
|
444
459
|
namespace constants {
|
|
445
460
|
const BROTLI_DECODE: number;
|
|
446
461
|
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
|
@@ -613,69 +628,4 @@ declare module "node:zlib" {
|
|
|
613
628
|
const Z_SYNC_FLUSH: number;
|
|
614
629
|
const Z_VERSION_ERROR: number;
|
|
615
630
|
}
|
|
616
|
-
// Allowed flush values.
|
|
617
|
-
/** @deprecated Use `constants.Z_NO_FLUSH` */
|
|
618
|
-
const Z_NO_FLUSH: number;
|
|
619
|
-
/** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
|
|
620
|
-
const Z_PARTIAL_FLUSH: number;
|
|
621
|
-
/** @deprecated Use `constants.Z_SYNC_FLUSH` */
|
|
622
|
-
const Z_SYNC_FLUSH: number;
|
|
623
|
-
/** @deprecated Use `constants.Z_FULL_FLUSH` */
|
|
624
|
-
const Z_FULL_FLUSH: number;
|
|
625
|
-
/** @deprecated Use `constants.Z_FINISH` */
|
|
626
|
-
const Z_FINISH: number;
|
|
627
|
-
/** @deprecated Use `constants.Z_BLOCK` */
|
|
628
|
-
const Z_BLOCK: number;
|
|
629
|
-
/** @deprecated Use `constants.Z_TREES` */
|
|
630
|
-
const Z_TREES: number;
|
|
631
|
-
// Return codes for the compression/decompression functions.
|
|
632
|
-
// Negative values are errors, positive values are used for special but normal events.
|
|
633
|
-
/** @deprecated Use `constants.Z_OK` */
|
|
634
|
-
const Z_OK: number;
|
|
635
|
-
/** @deprecated Use `constants.Z_STREAM_END` */
|
|
636
|
-
const Z_STREAM_END: number;
|
|
637
|
-
/** @deprecated Use `constants.Z_NEED_DICT` */
|
|
638
|
-
const Z_NEED_DICT: number;
|
|
639
|
-
/** @deprecated Use `constants.Z_ERRNO` */
|
|
640
|
-
const Z_ERRNO: number;
|
|
641
|
-
/** @deprecated Use `constants.Z_STREAM_ERROR` */
|
|
642
|
-
const Z_STREAM_ERROR: number;
|
|
643
|
-
/** @deprecated Use `constants.Z_DATA_ERROR` */
|
|
644
|
-
const Z_DATA_ERROR: number;
|
|
645
|
-
/** @deprecated Use `constants.Z_MEM_ERROR` */
|
|
646
|
-
const Z_MEM_ERROR: number;
|
|
647
|
-
/** @deprecated Use `constants.Z_BUF_ERROR` */
|
|
648
|
-
const Z_BUF_ERROR: number;
|
|
649
|
-
/** @deprecated Use `constants.Z_VERSION_ERROR` */
|
|
650
|
-
const Z_VERSION_ERROR: number;
|
|
651
|
-
// Compression levels.
|
|
652
|
-
/** @deprecated Use `constants.Z_NO_COMPRESSION` */
|
|
653
|
-
const Z_NO_COMPRESSION: number;
|
|
654
|
-
/** @deprecated Use `constants.Z_BEST_SPEED` */
|
|
655
|
-
const Z_BEST_SPEED: number;
|
|
656
|
-
/** @deprecated Use `constants.Z_BEST_COMPRESSION` */
|
|
657
|
-
const Z_BEST_COMPRESSION: number;
|
|
658
|
-
/** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
|
|
659
|
-
const Z_DEFAULT_COMPRESSION: number;
|
|
660
|
-
// Compression strategy.
|
|
661
|
-
/** @deprecated Use `constants.Z_FILTERED` */
|
|
662
|
-
const Z_FILTERED: number;
|
|
663
|
-
/** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
|
|
664
|
-
const Z_HUFFMAN_ONLY: number;
|
|
665
|
-
/** @deprecated Use `constants.Z_RLE` */
|
|
666
|
-
const Z_RLE: number;
|
|
667
|
-
/** @deprecated Use `constants.Z_FIXED` */
|
|
668
|
-
const Z_FIXED: number;
|
|
669
|
-
/** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
|
|
670
|
-
const Z_DEFAULT_STRATEGY: number;
|
|
671
|
-
/** @deprecated */
|
|
672
|
-
const Z_BINARY: number;
|
|
673
|
-
/** @deprecated */
|
|
674
|
-
const Z_TEXT: number;
|
|
675
|
-
/** @deprecated */
|
|
676
|
-
const Z_ASCII: number;
|
|
677
|
-
/** @deprecated */
|
|
678
|
-
const Z_UNKNOWN: number;
|
|
679
|
-
/** @deprecated */
|
|
680
|
-
const Z_DEFLATED: number;
|
|
681
631
|
}
|
package/ts5.1/index.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
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
|
-
* License for programmatically and manually incorporated
|
|
18
|
-
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|
|
19
|
-
*
|
|
20
|
-
* Copyright Node.js contributors. All rights reserved.
|
|
21
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
22
|
-
* of this software and associated documentation files (the "Software"), to
|
|
23
|
-
* deal in the Software without restriction, including without limitation the
|
|
24
|
-
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
25
|
-
* sell copies of the Software, and to permit persons to whom the Software is
|
|
26
|
-
* furnished to do so, subject to the following conditions:
|
|
27
|
-
*
|
|
28
|
-
* The above copyright notice and this permission notice shall be included in
|
|
29
|
-
* all copies or substantial portions of the Software.
|
|
30
|
-
*
|
|
31
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
32
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
33
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
34
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
35
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
36
|
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
37
|
-
* IN THE SOFTWARE.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
// NOTE: These definitions support Node.js and TypeScript 5.1.
|
|
41
|
-
|
|
42
|
-
// Reference required TypeScript libraries:
|
|
43
|
-
/// <reference lib="es2020" />
|
|
44
|
-
|
|
45
|
-
// TypeScript library polyfills required for TypeScript <=5.1:
|
|
46
|
-
/// <reference path="./compatibility/disposable.d.ts" />
|
|
47
|
-
|
|
48
|
-
// TypeScript library polyfills required for TypeScript <=5.6:
|
|
49
|
-
/// <reference path="../ts5.6/compatibility/float16array.d.ts" />
|
|
50
|
-
|
|
51
|
-
// Iterator definitions required for compatibility with TypeScript <5.6:
|
|
52
|
-
/// <reference path="../compatibility/iterators.d.ts" />
|
|
53
|
-
|
|
54
|
-
// Definitions for Node.js modules specific to TypeScript <=5.6:
|
|
55
|
-
/// <reference path="../ts5.6/globals.typedarray.d.ts" />
|
|
56
|
-
/// <reference path="../ts5.6/buffer.buffer.d.ts" />
|
|
57
|
-
|
|
58
|
-
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
59
|
-
/// <reference path="../globals.d.ts" />
|
|
60
|
-
/// <reference path="../assert.d.ts" />
|
|
61
|
-
/// <reference path="../assert/strict.d.ts" />
|
|
62
|
-
/// <reference path="../async_hooks.d.ts" />
|
|
63
|
-
/// <reference path="../buffer.d.ts" />
|
|
64
|
-
/// <reference path="../child_process.d.ts" />
|
|
65
|
-
/// <reference path="../cluster.d.ts" />
|
|
66
|
-
/// <reference path="../console.d.ts" />
|
|
67
|
-
/// <reference path="../constants.d.ts" />
|
|
68
|
-
/// <reference path="../crypto.d.ts" />
|
|
69
|
-
/// <reference path="../dgram.d.ts" />
|
|
70
|
-
/// <reference path="../diagnostics_channel.d.ts" />
|
|
71
|
-
/// <reference path="../dns.d.ts" />
|
|
72
|
-
/// <reference path="../dns/promises.d.ts" />
|
|
73
|
-
/// <reference path="../dns/promises.d.ts" />
|
|
74
|
-
/// <reference path="../domain.d.ts" />
|
|
75
|
-
/// <reference path="../dom-events.d.ts" />
|
|
76
|
-
/// <reference path="../events.d.ts" />
|
|
77
|
-
/// <reference path="../fs.d.ts" />
|
|
78
|
-
/// <reference path="../fs/promises.d.ts" />
|
|
79
|
-
/// <reference path="../http.d.ts" />
|
|
80
|
-
/// <reference path="../http2.d.ts" />
|
|
81
|
-
/// <reference path="../https.d.ts" />
|
|
82
|
-
/// <reference path="../inspector.d.ts" />
|
|
83
|
-
/// <reference path="../module.d.ts" />
|
|
84
|
-
/// <reference path="../net.d.ts" />
|
|
85
|
-
/// <reference path="../os.d.ts" />
|
|
86
|
-
/// <reference path="../path.d.ts" />
|
|
87
|
-
/// <reference path="../perf_hooks.d.ts" />
|
|
88
|
-
/// <reference path="../process.d.ts" />
|
|
89
|
-
/// <reference path="../punycode.d.ts" />
|
|
90
|
-
/// <reference path="../querystring.d.ts" />
|
|
91
|
-
/// <reference path="../readline.d.ts" />
|
|
92
|
-
/// <reference path="../readline/promises.d.ts" />
|
|
93
|
-
/// <reference path="../repl.d.ts" />
|
|
94
|
-
/// <reference path="../sea.d.ts" />
|
|
95
|
-
/// <reference path="../sqlite.d.ts" />
|
|
96
|
-
/// <reference path="../stream.d.ts" />
|
|
97
|
-
/// <reference path="../stream/promises.d.ts" />
|
|
98
|
-
/// <reference path="../stream/consumers.d.ts" />
|
|
99
|
-
/// <reference path="../stream/web.d.ts" />
|
|
100
|
-
/// <reference path="../string_decoder.d.ts" />
|
|
101
|
-
/// <reference path="../test.d.ts" />
|
|
102
|
-
/// <reference path="../timers.d.ts" />
|
|
103
|
-
/// <reference path="../timers/promises.d.ts" />
|
|
104
|
-
/// <reference path="../tls.d.ts" />
|
|
105
|
-
/// <reference path="../trace_events.d.ts" />
|
|
106
|
-
/// <reference path="../tty.d.ts" />
|
|
107
|
-
/// <reference path="../url.d.ts" />
|
|
108
|
-
/// <reference path="../util.d.ts" />
|
|
109
|
-
/// <reference path="../v8.d.ts" />
|
|
110
|
-
/// <reference path="../vm.d.ts" />
|
|
111
|
-
/// <reference path="../wasi.d.ts" />
|
|
112
|
-
/// <reference path="../worker_threads.d.ts" />
|
|
113
|
-
/// <reference path="../zlib.d.ts" />
|
|
114
|
-
|
|
115
|
-
/// <reference path="../my-shim.d.ts" />
|