@types/node 16.18.86 → 16.18.88

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.
Files changed (55) hide show
  1. node v16.18/README.md +2 -2
  2. node v16.18/package.json +3 -15
  3. node v16.18/ts4.8/assert/strict.d.ts +0 -8
  4. node v16.18/ts4.8/assert.d.ts +0 -986
  5. node v16.18/ts4.8/async_hooks.d.ts +0 -501
  6. node v16.18/ts4.8/buffer.d.ts +0 -2266
  7. node v16.18/ts4.8/child_process.d.ts +0 -1536
  8. node v16.18/ts4.8/cluster.d.ts +0 -436
  9. node v16.18/ts4.8/console.d.ts +0 -412
  10. node v16.18/ts4.8/constants.d.ts +0 -19
  11. node v16.18/ts4.8/crypto.d.ts +0 -4346
  12. node v16.18/ts4.8/dgram.d.ts +0 -591
  13. node v16.18/ts4.8/diagnostics_channel.d.ts +0 -191
  14. node v16.18/ts4.8/dns/promises.d.ts +0 -372
  15. node v16.18/ts4.8/dns.d.ts +0 -796
  16. node v16.18/ts4.8/dom-events.d.ts +0 -122
  17. node v16.18/ts4.8/domain.d.ts +0 -170
  18. node v16.18/ts4.8/events.d.ts +0 -714
  19. node v16.18/ts4.8/fs/promises.d.ts +0 -1124
  20. node v16.18/ts4.8/fs.d.ts +0 -4030
  21. node v16.18/ts4.8/globals.d.ts +0 -291
  22. node v16.18/ts4.8/globals.global.d.ts +0 -1
  23. node v16.18/ts4.8/http.d.ts +0 -1586
  24. node v16.18/ts4.8/http2.d.ts +0 -2353
  25. node v16.18/ts4.8/https.d.ts +0 -534
  26. node v16.18/ts4.8/index.d.ts +0 -86
  27. node v16.18/ts4.8/inspector.d.ts +0 -2743
  28. node v16.18/ts4.8/module.d.ts +0 -221
  29. node v16.18/ts4.8/net.d.ts +0 -858
  30. node v16.18/ts4.8/os.d.ts +0 -455
  31. node v16.18/ts4.8/path.d.ts +0 -191
  32. node v16.18/ts4.8/perf_hooks.d.ts +0 -603
  33. node v16.18/ts4.8/process.d.ts +0 -1525
  34. node v16.18/ts4.8/punycode.d.ts +0 -117
  35. node v16.18/ts4.8/querystring.d.ts +0 -141
  36. node v16.18/ts4.8/readline.d.ts +0 -553
  37. node v16.18/ts4.8/repl.d.ts +0 -430
  38. node v16.18/ts4.8/stream/consumers.d.ts +0 -12
  39. node v16.18/ts4.8/stream/promises.d.ts +0 -83
  40. node v16.18/ts4.8/stream/web.d.ts +0 -392
  41. node v16.18/ts4.8/stream.d.ts +0 -1494
  42. node v16.18/ts4.8/string_decoder.d.ts +0 -67
  43. node v16.18/ts4.8/test.d.ts +0 -190
  44. node v16.18/ts4.8/timers/promises.d.ts +0 -93
  45. node v16.18/ts4.8/timers.d.ts +0 -109
  46. node v16.18/ts4.8/tls.d.ts +0 -1099
  47. node v16.18/ts4.8/trace_events.d.ts +0 -161
  48. node v16.18/ts4.8/tty.d.ts +0 -204
  49. node v16.18/ts4.8/url.d.ts +0 -885
  50. node v16.18/ts4.8/util.d.ts +0 -1689
  51. node v16.18/ts4.8/v8.d.ts +0 -626
  52. node v16.18/ts4.8/vm.d.ts +0 -507
  53. node v16.18/ts4.8/wasi.d.ts +0 -158
  54. node v16.18/ts4.8/worker_threads.d.ts +0 -649
  55. node v16.18/ts4.8/zlib.d.ts +0 -517
@@ -1,392 +0,0 @@
1
- declare module "stream/web" {
2
- // stub module, pending copy&paste from .d.ts or manual impl
3
- // copy from lib.dom.d.ts
4
-
5
- interface ReadableWritablePair<R = any, W = any> {
6
- readable: ReadableStream<R>;
7
- /**
8
- * Provides a convenient, chainable way of piping this readable stream
9
- * through a transform stream (or any other { writable, readable }
10
- * pair). It simply pipes the stream into the writable side of the
11
- * supplied pair, and returns the readable side for further use.
12
- *
13
- * Piping a stream will lock it for the duration of the pipe, preventing
14
- * any other consumer from acquiring a reader.
15
- */
16
- writable: WritableStream<W>;
17
- }
18
-
19
- interface StreamPipeOptions {
20
- preventAbort?: boolean;
21
- preventCancel?: boolean;
22
- /**
23
- * Pipes this readable stream to a given writable stream destination.
24
- * The way in which the piping process behaves under various error
25
- * conditions can be customized with a number of passed options. It
26
- * returns a promise that fulfills when the piping process completes
27
- * successfully, or rejects if any errors were encountered.
28
- *
29
- * Piping a stream will lock it for the duration of the pipe, preventing
30
- * any other consumer from acquiring a reader.
31
- *
32
- * Errors and closures of the source and destination streams propagate
33
- * as follows:
34
- *
35
- * An error in this source readable stream will abort destination,
36
- * unless preventAbort is truthy. The returned promise will be rejected
37
- * with the source's error, or with any error that occurs during
38
- * aborting the destination.
39
- *
40
- * An error in destination will cancel this source readable stream,
41
- * unless preventCancel is truthy. The returned promise will be rejected
42
- * with the destination's error, or with any error that occurs during
43
- * canceling the source.
44
- *
45
- * When this source readable stream closes, destination will be closed,
46
- * unless preventClose is truthy. The returned promise will be fulfilled
47
- * once this process completes, unless an error is encountered while
48
- * closing the destination, in which case it will be rejected with that
49
- * error.
50
- *
51
- * If destination starts out closed or closing, this source readable
52
- * stream will be canceled, unless preventCancel is true. The returned
53
- * promise will be rejected with an error indicating piping to a closed
54
- * stream failed, or with any error that occurs during canceling the
55
- * source.
56
- *
57
- * The signal option can be set to an AbortSignal to allow aborting an
58
- * ongoing pipe operation via the corresponding AbortController. In this
59
- * case, this source readable stream will be canceled, and destination
60
- * aborted, unless the respective options preventCancel or preventAbort
61
- * are set.
62
- */
63
- preventClose?: boolean;
64
- signal?: AbortSignal;
65
- }
66
-
67
- interface ReadableStreamGenericReader {
68
- readonly closed: Promise<undefined>;
69
- cancel(reason?: any): Promise<void>;
70
- }
71
-
72
- interface ReadableStreamDefaultReadValueResult<T> {
73
- done: false;
74
- value: T;
75
- }
76
-
77
- interface ReadableStreamDefaultReadDoneResult {
78
- done: true;
79
- value?: undefined;
80
- }
81
- type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
82
- type ReadableStreamDefaultReadResult<T> =
83
- | ReadableStreamDefaultReadValueResult<T>
84
- | ReadableStreamDefaultReadDoneResult;
85
-
86
- interface ReadableByteStreamControllerCallback {
87
- (controller: ReadableByteStreamController): void | PromiseLike<void>;
88
- }
89
-
90
- interface UnderlyingSinkAbortCallback {
91
- (reason?: any): void | PromiseLike<void>;
92
- }
93
-
94
- interface UnderlyingSinkCloseCallback {
95
- (): void | PromiseLike<void>;
96
- }
97
-
98
- interface UnderlyingSinkStartCallback {
99
- (controller: WritableStreamDefaultController): any;
100
- }
101
-
102
- interface UnderlyingSinkWriteCallback<W> {
103
- (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
104
- }
105
-
106
- interface UnderlyingSourceCancelCallback {
107
- (reason?: any): void | PromiseLike<void>;
108
- }
109
-
110
- interface UnderlyingSourcePullCallback<R> {
111
- (controller: ReadableStreamController<R>): void | PromiseLike<void>;
112
- }
113
-
114
- interface UnderlyingSourceStartCallback<R> {
115
- (controller: ReadableStreamController<R>): any;
116
- }
117
-
118
- interface TransformerFlushCallback<O> {
119
- (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
120
- }
121
-
122
- interface TransformerStartCallback<O> {
123
- (controller: TransformStreamDefaultController<O>): any;
124
- }
125
-
126
- interface TransformerTransformCallback<I, O> {
127
- (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
128
- }
129
-
130
- interface UnderlyingByteSource {
131
- autoAllocateChunkSize?: number;
132
- cancel?: ReadableStreamErrorCallback;
133
- pull?: ReadableByteStreamControllerCallback;
134
- start?: ReadableByteStreamControllerCallback;
135
- type: "bytes";
136
- }
137
-
138
- interface UnderlyingSource<R = any> {
139
- cancel?: UnderlyingSourceCancelCallback;
140
- pull?: UnderlyingSourcePullCallback<R>;
141
- start?: UnderlyingSourceStartCallback<R>;
142
- type?: undefined;
143
- }
144
-
145
- interface UnderlyingSink<W = any> {
146
- abort?: UnderlyingSinkAbortCallback;
147
- close?: UnderlyingSinkCloseCallback;
148
- start?: UnderlyingSinkStartCallback;
149
- type?: undefined;
150
- write?: UnderlyingSinkWriteCallback<W>;
151
- }
152
-
153
- interface ReadableStreamErrorCallback {
154
- (reason: any): void | PromiseLike<void>;
155
- }
156
-
157
- /** This Streams API interface represents a readable stream of byte data. */
158
- interface ReadableStream<R = any> {
159
- readonly locked: boolean;
160
- cancel(reason?: any): Promise<void>;
161
- getReader(): ReadableStreamDefaultReader<R>;
162
- pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
163
- pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
164
- tee(): [ReadableStream<R>, ReadableStream<R>];
165
- values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
166
- [Symbol.asyncIterator](): AsyncIterableIterator<R>;
167
- }
168
-
169
- const ReadableStream: {
170
- prototype: ReadableStream;
171
- new(
172
- underlyingSource: UnderlyingByteSource,
173
- strategy?: QueuingStrategy<Uint8Array>,
174
- ): ReadableStream<Uint8Array>;
175
- new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
176
- };
177
-
178
- interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
179
- read(): Promise<ReadableStreamDefaultReadResult<R>>;
180
- releaseLock(): void;
181
- }
182
-
183
- const ReadableStreamDefaultReader: {
184
- prototype: ReadableStreamDefaultReader;
185
- new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
186
- };
187
-
188
- const ReadableStreamBYOBReader: any;
189
- const ReadableStreamBYOBRequest: any;
190
-
191
- interface ReadableByteStreamController {
192
- readonly byobRequest: undefined;
193
- readonly desiredSize: number | null;
194
- close(): void;
195
- enqueue(chunk: ArrayBufferView): void;
196
- error(error?: any): void;
197
- }
198
-
199
- const ReadableByteStreamController: {
200
- prototype: ReadableByteStreamController;
201
- new(): ReadableByteStreamController;
202
- };
203
-
204
- interface ReadableStreamDefaultController<R = any> {
205
- readonly desiredSize: number | null;
206
- close(): void;
207
- enqueue(chunk?: R): void;
208
- error(e?: any): void;
209
- }
210
-
211
- const ReadableStreamDefaultController: {
212
- prototype: ReadableStreamDefaultController;
213
- new(): ReadableStreamDefaultController;
214
- };
215
-
216
- interface Transformer<I = any, O = any> {
217
- flush?: TransformerFlushCallback<O>;
218
- readableType?: undefined;
219
- start?: TransformerStartCallback<O>;
220
- transform?: TransformerTransformCallback<I, O>;
221
- writableType?: undefined;
222
- }
223
-
224
- interface TransformStream<I = any, O = any> {
225
- readonly readable: ReadableStream<O>;
226
- readonly writable: WritableStream<I>;
227
- }
228
-
229
- const TransformStream: {
230
- prototype: TransformStream;
231
- new<I = any, O = any>(
232
- transformer?: Transformer<I, O>,
233
- writableStrategy?: QueuingStrategy<I>,
234
- readableStrategy?: QueuingStrategy<O>,
235
- ): TransformStream<I, O>;
236
- };
237
-
238
- interface TransformStreamDefaultController<O = any> {
239
- readonly desiredSize: number | null;
240
- enqueue(chunk?: O): void;
241
- error(reason?: any): void;
242
- terminate(): void;
243
- }
244
-
245
- const TransformStreamDefaultController: {
246
- prototype: TransformStreamDefaultController;
247
- new(): TransformStreamDefaultController;
248
- };
249
-
250
- /**
251
- * This Streams API interface provides a standard abstraction for writing
252
- * streaming data to a destination, known as a sink. This object comes with
253
- * built-in back pressure and queuing.
254
- */
255
- interface WritableStream<W = any> {
256
- readonly locked: boolean;
257
- abort(reason?: any): Promise<void>;
258
- close(): Promise<void>;
259
- getWriter(): WritableStreamDefaultWriter<W>;
260
- }
261
-
262
- const WritableStream: {
263
- prototype: WritableStream;
264
- new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
265
- };
266
-
267
- /**
268
- * This Streams API interface is the object returned by
269
- * WritableStream.getWriter() and once created locks the < writer to the
270
- * WritableStream ensuring that no other streams can write to the underlying
271
- * sink.
272
- */
273
- interface WritableStreamDefaultWriter<W = any> {
274
- readonly closed: Promise<undefined>;
275
- readonly desiredSize: number | null;
276
- readonly ready: Promise<undefined>;
277
- abort(reason?: any): Promise<void>;
278
- close(): Promise<void>;
279
- releaseLock(): void;
280
- write(chunk?: W): Promise<void>;
281
- }
282
-
283
- const WritableStreamDefaultWriter: {
284
- prototype: WritableStreamDefaultWriter;
285
- new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
286
- };
287
-
288
- /**
289
- * This Streams API interface represents a controller allowing control of a
290
- * WritableStream's state. When constructing a WritableStream, the
291
- * underlying sink is given a corresponding WritableStreamDefaultController
292
- * instance to manipulate.
293
- */
294
- interface WritableStreamDefaultController {
295
- error(e?: any): void;
296
- }
297
-
298
- const WritableStreamDefaultController: {
299
- prototype: WritableStreamDefaultController;
300
- new(): WritableStreamDefaultController;
301
- };
302
-
303
- interface QueuingStrategy<T = any> {
304
- highWaterMark?: number;
305
- size?: QueuingStrategySize<T>;
306
- }
307
-
308
- interface QueuingStrategySize<T = any> {
309
- (chunk?: T): number;
310
- }
311
-
312
- interface QueuingStrategyInit {
313
- /**
314
- * Creates a new ByteLengthQueuingStrategy with the provided high water
315
- * mark.
316
- *
317
- * Note that the provided high water mark will not be validated ahead of
318
- * time. Instead, if it is negative, NaN, or not a number, the resulting
319
- * ByteLengthQueuingStrategy will cause the corresponding stream
320
- * constructor to throw.
321
- */
322
- highWaterMark: number;
323
- }
324
-
325
- /**
326
- * This Streams API interface provides a built-in byte length queuing
327
- * strategy that can be used when constructing streams.
328
- */
329
- interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
330
- readonly highWaterMark: number;
331
- readonly size: QueuingStrategySize<ArrayBufferView>;
332
- }
333
-
334
- const ByteLengthQueuingStrategy: {
335
- prototype: ByteLengthQueuingStrategy;
336
- new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
337
- };
338
-
339
- /**
340
- * This Streams API interface provides a built-in byte length queuing
341
- * strategy that can be used when constructing streams.
342
- */
343
- interface CountQueuingStrategy extends QueuingStrategy {
344
- readonly highWaterMark: number;
345
- readonly size: QueuingStrategySize;
346
- }
347
-
348
- const CountQueuingStrategy: {
349
- prototype: CountQueuingStrategy;
350
- new(init: QueuingStrategyInit): CountQueuingStrategy;
351
- };
352
-
353
- interface TextEncoderStream {
354
- /** Returns "utf-8". */
355
- readonly encoding: "utf-8";
356
- readonly readable: ReadableStream<Uint8Array>;
357
- readonly writable: WritableStream<string>;
358
- readonly [Symbol.toStringTag]: string;
359
- }
360
-
361
- const TextEncoderStream: {
362
- prototype: TextEncoderStream;
363
- new(): TextEncoderStream;
364
- };
365
-
366
- interface TextDecoderOptions {
367
- fatal?: boolean;
368
- ignoreBOM?: boolean;
369
- }
370
-
371
- type BufferSource = ArrayBufferView | ArrayBuffer;
372
-
373
- interface TextDecoderStream {
374
- /** Returns encoding's name, lower cased. */
375
- readonly encoding: string;
376
- /** Returns `true` if error mode is "fatal", and `false` otherwise. */
377
- readonly fatal: boolean;
378
- /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
379
- readonly ignoreBOM: boolean;
380
- readonly readable: ReadableStream<string>;
381
- readonly writable: WritableStream<BufferSource>;
382
- readonly [Symbol.toStringTag]: string;
383
- }
384
-
385
- const TextDecoderStream: {
386
- prototype: TextDecoderStream;
387
- new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
388
- };
389
- }
390
- declare module "node:stream/web" {
391
- export * from "stream/web";
392
- }