cdk-common 2.0.1351 → 2.0.1353
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/.jsii +38 -2
- package/API.md +36 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +7 -1
- package/lib/managed-policies.js +7 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert/strict.d.ts +5 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +9 -169
- package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +8 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +44 -168
- package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +16 -64
- package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +240 -332
- package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +49 -351
- package/node_modules/@types/concat-stream/node_modules/@types/node/constants.d.ts +3 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +279 -1631
- package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +15 -51
- package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns/promises.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +131 -132
- package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +13 -17
- package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +869 -791
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +7 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +417 -455
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +6 -26
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +60 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +263 -254
- package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +528 -804
- package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +59 -239
- package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +6 -59
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +3 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +47 -122
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +63 -184
- package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +6 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +120 -133
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +282 -643
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +156 -128
- package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +67 -120
- package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +75 -98
- package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/web.d.ts +176 -453
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +555 -478
- package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +80 -180
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +4 -130
- package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +102 -177
- package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +58 -16
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +54 -592
- package/node_modules/@types/concat-stream/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +120 -792
- package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +32 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/streams.d.ts +93 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +176 -358
- package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +8 -71
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/assert/strict.d.ts +5 -11
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +9 -169
- package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +8 -8
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +44 -168
- package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +16 -64
- package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +240 -332
- package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +49 -351
- package/node_modules/@types/form-data/node_modules/@types/node/constants.d.ts +3 -4
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +279 -1631
- package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +15 -51
- package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/dns/promises.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +131 -132
- package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +13 -17
- package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +869 -791
- package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +7 -8
- package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +417 -455
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +6 -26
- package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +60 -0
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +263 -254
- package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +528 -804
- package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +59 -239
- package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +6 -59
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +3 -10
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +47 -122
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +63 -184
- package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +6 -6
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +120 -133
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +282 -643
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +156 -128
- package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +67 -120
- package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +75 -98
- package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/form-data/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/form-data/node_modules/@types/node/stream/web.d.ts +176 -453
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +555 -478
- package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +80 -180
- package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +4 -130
- package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +102 -177
- package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +58 -16
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +54 -592
- package/node_modules/@types/form-data/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +120 -792
- package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +32 -5
- package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/streams.d.ts +93 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +176 -358
- package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +8 -71
- package/package.json +4 -4
|
@@ -1,115 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
declare module "node:stream/web" {
|
|
2
|
+
import { TextDecoderCommon, TextDecoderOptions, TextEncoderCommon } from "node:util";
|
|
3
|
+
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
4
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
5
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
6
|
+
type ReadableStreamReaderMode = "byob";
|
|
7
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
8
|
+
type ReadableStreamType = "bytes";
|
|
9
|
+
interface GenericTransformStream {
|
|
10
|
+
readonly readable: ReadableStream;
|
|
11
|
+
readonly writable: WritableStream;
|
|
12
|
+
}
|
|
13
|
+
interface QueuingStrategy<T = any> {
|
|
14
|
+
highWaterMark?: number;
|
|
15
|
+
size?: QueuingStrategySize<T>;
|
|
16
|
+
}
|
|
17
|
+
interface QueuingStrategyInit {
|
|
18
|
+
highWaterMark: number;
|
|
19
|
+
}
|
|
20
|
+
interface QueuingStrategySize<T = any> {
|
|
21
|
+
(chunk: T): number;
|
|
22
|
+
}
|
|
23
|
+
interface ReadableStreamBYOBReaderReadOptions {
|
|
24
|
+
min?: number;
|
|
25
|
+
}
|
|
26
|
+
interface ReadableStreamGenericReader {
|
|
27
|
+
readonly closed: Promise<void>;
|
|
28
|
+
cancel(reason?: any): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
interface ReadableStreamGetReaderOptions {
|
|
31
|
+
mode?: ReadableStreamReaderMode;
|
|
32
|
+
}
|
|
33
|
+
interface ReadableStreamIteratorOptions {
|
|
34
|
+
preventCancel?: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
37
|
+
done: true;
|
|
38
|
+
value: T | undefined;
|
|
39
|
+
}
|
|
40
|
+
interface ReadableStreamReadValueResult<T> {
|
|
41
|
+
done: false;
|
|
42
|
+
value: T;
|
|
43
|
+
}
|
|
37
44
|
interface ReadableWritablePair<R = any, W = any> {
|
|
38
45
|
readable: ReadableStream<R>;
|
|
39
|
-
/**
|
|
40
|
-
* Provides a convenient, chainable way of piping this readable stream
|
|
41
|
-
* through a transform stream (or any other { writable, readable }
|
|
42
|
-
* pair). It simply pipes the stream into the writable side of the
|
|
43
|
-
* supplied pair, and returns the readable side for further use.
|
|
44
|
-
*
|
|
45
|
-
* Piping a stream will lock it for the duration of the pipe, preventing
|
|
46
|
-
* any other consumer from acquiring a reader.
|
|
47
|
-
*/
|
|
48
46
|
writable: WritableStream<W>;
|
|
49
47
|
}
|
|
50
48
|
interface StreamPipeOptions {
|
|
51
49
|
preventAbort?: boolean;
|
|
52
50
|
preventCancel?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Pipes this readable stream to a given writable stream destination.
|
|
55
|
-
* The way in which the piping process behaves under various error
|
|
56
|
-
* conditions can be customized with a number of passed options. It
|
|
57
|
-
* returns a promise that fulfills when the piping process completes
|
|
58
|
-
* successfully, or rejects if any errors were encountered.
|
|
59
|
-
*
|
|
60
|
-
* Piping a stream will lock it for the duration of the pipe, preventing
|
|
61
|
-
* any other consumer from acquiring a reader.
|
|
62
|
-
*
|
|
63
|
-
* Errors and closures of the source and destination streams propagate
|
|
64
|
-
* as follows:
|
|
65
|
-
*
|
|
66
|
-
* An error in this source readable stream will abort destination,
|
|
67
|
-
* unless preventAbort is truthy. The returned promise will be rejected
|
|
68
|
-
* with the source's error, or with any error that occurs during
|
|
69
|
-
* aborting the destination.
|
|
70
|
-
*
|
|
71
|
-
* An error in destination will cancel this source readable stream,
|
|
72
|
-
* unless preventCancel is truthy. The returned promise will be rejected
|
|
73
|
-
* with the destination's error, or with any error that occurs during
|
|
74
|
-
* canceling the source.
|
|
75
|
-
*
|
|
76
|
-
* When this source readable stream closes, destination will be closed,
|
|
77
|
-
* unless preventClose is truthy. The returned promise will be fulfilled
|
|
78
|
-
* once this process completes, unless an error is encountered while
|
|
79
|
-
* closing the destination, in which case it will be rejected with that
|
|
80
|
-
* error.
|
|
81
|
-
*
|
|
82
|
-
* If destination starts out closed or closing, this source readable
|
|
83
|
-
* stream will be canceled, unless preventCancel is true. The returned
|
|
84
|
-
* promise will be rejected with an error indicating piping to a closed
|
|
85
|
-
* stream failed, or with any error that occurs during canceling the
|
|
86
|
-
* source.
|
|
87
|
-
*
|
|
88
|
-
* The signal option can be set to an AbortSignal to allow aborting an
|
|
89
|
-
* ongoing pipe operation via the corresponding AbortController. In this
|
|
90
|
-
* case, this source readable stream will be canceled, and destination
|
|
91
|
-
* aborted, unless the respective options preventCancel or preventAbort
|
|
92
|
-
* are set.
|
|
93
|
-
*/
|
|
94
51
|
preventClose?: boolean;
|
|
95
52
|
signal?: AbortSignal;
|
|
96
53
|
}
|
|
97
|
-
interface
|
|
98
|
-
|
|
99
|
-
|
|
54
|
+
interface Transformer<I = any, O = any> {
|
|
55
|
+
flush?: TransformerFlushCallback<O>;
|
|
56
|
+
readableType?: undefined;
|
|
57
|
+
start?: TransformerStartCallback<O>;
|
|
58
|
+
transform?: TransformerTransformCallback<I, O>;
|
|
59
|
+
writableType?: undefined;
|
|
100
60
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
done: false;
|
|
104
|
-
value: T;
|
|
61
|
+
interface TransformerFlushCallback<O> {
|
|
62
|
+
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
105
63
|
}
|
|
106
|
-
interface
|
|
107
|
-
|
|
108
|
-
value?: T;
|
|
64
|
+
interface TransformerStartCallback<O> {
|
|
65
|
+
(controller: TransformStreamDefaultController<O>): any;
|
|
109
66
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
67
|
+
interface TransformerTransformCallback<I, O> {
|
|
68
|
+
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
69
|
+
}
|
|
70
|
+
interface UnderlyingByteSource {
|
|
71
|
+
autoAllocateChunkSize?: number;
|
|
72
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
73
|
+
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
|
|
74
|
+
start?: (controller: ReadableByteStreamController) => any;
|
|
75
|
+
type: "bytes";
|
|
76
|
+
}
|
|
77
|
+
interface UnderlyingDefaultSource<R = any> {
|
|
78
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
79
|
+
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
|
|
80
|
+
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
81
|
+
type?: undefined;
|
|
82
|
+
}
|
|
83
|
+
interface UnderlyingSink<W = any> {
|
|
84
|
+
abort?: UnderlyingSinkAbortCallback;
|
|
85
|
+
close?: UnderlyingSinkCloseCallback;
|
|
86
|
+
start?: UnderlyingSinkStartCallback;
|
|
87
|
+
type?: undefined;
|
|
88
|
+
write?: UnderlyingSinkWriteCallback<W>;
|
|
113
89
|
}
|
|
114
90
|
interface UnderlyingSinkAbortCallback {
|
|
115
91
|
(reason?: any): void | PromiseLike<void>;
|
|
@@ -123,6 +99,13 @@ declare module "stream/web" {
|
|
|
123
99
|
interface UnderlyingSinkWriteCallback<W> {
|
|
124
100
|
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
125
101
|
}
|
|
102
|
+
interface UnderlyingSource<R = any> {
|
|
103
|
+
autoAllocateChunkSize?: number;
|
|
104
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
105
|
+
pull?: UnderlyingSourcePullCallback<R>;
|
|
106
|
+
start?: UnderlyingSourceStartCallback<R>;
|
|
107
|
+
type?: ReadableStreamType;
|
|
108
|
+
}
|
|
126
109
|
interface UnderlyingSourceCancelCallback {
|
|
127
110
|
(reason?: any): void | PromiseLike<void>;
|
|
128
111
|
}
|
|
@@ -132,45 +115,49 @@ declare module "stream/web" {
|
|
|
132
115
|
interface UnderlyingSourceStartCallback<R> {
|
|
133
116
|
(controller: ReadableStreamController<R>): any;
|
|
134
117
|
}
|
|
135
|
-
interface
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
interface TransformerStartCallback<O> {
|
|
139
|
-
(controller: TransformStreamDefaultController<O>): any;
|
|
140
|
-
}
|
|
141
|
-
interface TransformerTransformCallback<I, O> {
|
|
142
|
-
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
143
|
-
}
|
|
144
|
-
interface TransformerCancelCallback {
|
|
145
|
-
(reason: any): void | PromiseLike<void>;
|
|
146
|
-
}
|
|
147
|
-
interface UnderlyingByteSource {
|
|
148
|
-
autoAllocateChunkSize?: number;
|
|
149
|
-
cancel?: ReadableStreamErrorCallback;
|
|
150
|
-
pull?: ReadableByteStreamControllerCallback;
|
|
151
|
-
start?: ReadableByteStreamControllerCallback;
|
|
152
|
-
type: "bytes";
|
|
118
|
+
interface ByteLengthQueuingStrategy extends QueuingStrategy<NodeJS.ArrayBufferView> {
|
|
119
|
+
readonly highWaterMark: number;
|
|
120
|
+
readonly size: QueuingStrategySize<NodeJS.ArrayBufferView>;
|
|
153
121
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
122
|
+
var ByteLengthQueuingStrategy: {
|
|
123
|
+
prototype: ByteLengthQueuingStrategy;
|
|
124
|
+
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
125
|
+
};
|
|
126
|
+
interface CompressionStream extends GenericTransformStream {
|
|
127
|
+
readonly readable: ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
128
|
+
readonly writable: WritableStream<NodeJS.BufferSource>;
|
|
159
129
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
130
|
+
var CompressionStream: {
|
|
131
|
+
prototype: CompressionStream;
|
|
132
|
+
new(format: CompressionFormat): CompressionStream;
|
|
133
|
+
};
|
|
134
|
+
interface CountQueuingStrategy extends QueuingStrategy {
|
|
135
|
+
readonly highWaterMark: number;
|
|
136
|
+
readonly size: QueuingStrategySize;
|
|
166
137
|
}
|
|
167
|
-
|
|
168
|
-
|
|
138
|
+
var CountQueuingStrategy: {
|
|
139
|
+
prototype: CountQueuingStrategy;
|
|
140
|
+
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
141
|
+
};
|
|
142
|
+
interface DecompressionStream extends GenericTransformStream {
|
|
143
|
+
readonly readable: ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
144
|
+
readonly writable: WritableStream<NodeJS.BufferSource>;
|
|
169
145
|
}
|
|
170
|
-
|
|
171
|
-
|
|
146
|
+
var DecompressionStream: {
|
|
147
|
+
prototype: DecompressionStream;
|
|
148
|
+
new(format: CompressionFormat): DecompressionStream;
|
|
149
|
+
};
|
|
150
|
+
interface ReadableByteStreamController {
|
|
151
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
152
|
+
readonly desiredSize: number | null;
|
|
153
|
+
close(): void;
|
|
154
|
+
enqueue(chunk: NodeJS.NonSharedArrayBufferView): void;
|
|
155
|
+
error(e?: any): void;
|
|
172
156
|
}
|
|
173
|
-
|
|
157
|
+
var ReadableByteStreamController: {
|
|
158
|
+
prototype: ReadableByteStreamController;
|
|
159
|
+
new(): ReadableByteStreamController;
|
|
160
|
+
};
|
|
174
161
|
interface ReadableStream<R = any> {
|
|
175
162
|
readonly locked: boolean;
|
|
176
163
|
cancel(reason?: any): Promise<void>;
|
|
@@ -180,96 +167,81 @@ declare module "stream/web" {
|
|
|
180
167
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
181
168
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
182
169
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
183
|
-
|
|
184
|
-
|
|
170
|
+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
171
|
+
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
185
172
|
}
|
|
186
|
-
|
|
173
|
+
var ReadableStream: {
|
|
187
174
|
prototype: ReadableStream;
|
|
188
|
-
|
|
189
|
-
|
|
175
|
+
new(
|
|
176
|
+
underlyingSource: UnderlyingByteSource,
|
|
177
|
+
strategy?: { highWaterMark?: number },
|
|
178
|
+
): ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
179
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
190
180
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
181
|
+
from<R = any>(iterable: Iterable<R> | AsyncIterable<R>): ReadableStream<R>;
|
|
191
182
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
196
|
-
*
|
|
197
|
-
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
198
|
-
*/
|
|
199
|
-
mode?: ReadableStreamReaderMode;
|
|
200
|
-
}
|
|
201
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
202
|
-
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
203
|
-
read(): Promise<ReadableStreamReadResult<R>>;
|
|
204
|
-
releaseLock(): void;
|
|
183
|
+
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
184
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
205
185
|
}
|
|
206
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
|
|
207
186
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
208
|
-
|
|
209
|
-
read<T extends ArrayBufferView>(
|
|
187
|
+
read<T extends NodeJS.NonSharedArrayBufferView>(
|
|
210
188
|
view: T,
|
|
211
|
-
options?:
|
|
212
|
-
min?: number;
|
|
213
|
-
},
|
|
189
|
+
options?: ReadableStreamBYOBReaderReadOptions,
|
|
214
190
|
): Promise<ReadableStreamReadResult<T>>;
|
|
215
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
|
|
216
191
|
releaseLock(): void;
|
|
217
192
|
}
|
|
218
|
-
|
|
219
|
-
prototype: ReadableStreamDefaultReader;
|
|
220
|
-
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
221
|
-
};
|
|
222
|
-
const ReadableStreamBYOBReader: {
|
|
193
|
+
var ReadableStreamBYOBReader: {
|
|
223
194
|
prototype: ReadableStreamBYOBReader;
|
|
224
|
-
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
195
|
+
new(stream: ReadableStream<NodeJS.NonSharedUint8Array>): ReadableStreamBYOBReader;
|
|
225
196
|
};
|
|
226
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
|
|
227
197
|
interface ReadableStreamBYOBRequest {
|
|
228
|
-
|
|
229
|
-
readonly view: ArrayBufferView | null;
|
|
230
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
|
|
198
|
+
readonly view: NodeJS.NonSharedArrayBufferView | null;
|
|
231
199
|
respond(bytesWritten: number): void;
|
|
232
|
-
|
|
233
|
-
respondWithNewView(view: ArrayBufferView): void;
|
|
200
|
+
respondWithNewView(view: NodeJS.NonSharedArrayBufferView): void;
|
|
234
201
|
}
|
|
235
|
-
|
|
202
|
+
var ReadableStreamBYOBRequest: {
|
|
236
203
|
prototype: ReadableStreamBYOBRequest;
|
|
237
204
|
new(): ReadableStreamBYOBRequest;
|
|
238
205
|
};
|
|
239
|
-
interface ReadableByteStreamController {
|
|
240
|
-
readonly byobRequest: undefined;
|
|
241
|
-
readonly desiredSize: number | null;
|
|
242
|
-
close(): void;
|
|
243
|
-
enqueue(chunk: ArrayBufferView): void;
|
|
244
|
-
error(error?: any): void;
|
|
245
|
-
}
|
|
246
|
-
const ReadableByteStreamController: {
|
|
247
|
-
prototype: ReadableByteStreamController;
|
|
248
|
-
new(): ReadableByteStreamController;
|
|
249
|
-
};
|
|
250
206
|
interface ReadableStreamDefaultController<R = any> {
|
|
251
207
|
readonly desiredSize: number | null;
|
|
252
208
|
close(): void;
|
|
253
209
|
enqueue(chunk?: R): void;
|
|
254
210
|
error(e?: any): void;
|
|
255
211
|
}
|
|
256
|
-
|
|
212
|
+
var ReadableStreamDefaultController: {
|
|
257
213
|
prototype: ReadableStreamDefaultController;
|
|
258
214
|
new(): ReadableStreamDefaultController;
|
|
259
215
|
};
|
|
260
|
-
interface
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
216
|
+
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
217
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
218
|
+
releaseLock(): void;
|
|
219
|
+
}
|
|
220
|
+
var ReadableStreamDefaultReader: {
|
|
221
|
+
prototype: ReadableStreamDefaultReader;
|
|
222
|
+
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
223
|
+
};
|
|
224
|
+
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
225
|
+
readonly readable: ReadableStream<string>;
|
|
226
|
+
readonly writable: WritableStream<NodeJS.BufferSource>;
|
|
267
227
|
}
|
|
228
|
+
var TextDecoderStream: {
|
|
229
|
+
prototype: TextDecoderStream;
|
|
230
|
+
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
231
|
+
};
|
|
232
|
+
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
233
|
+
readonly readable: ReadableStream<NodeJS.NonSharedUint8Array>;
|
|
234
|
+
readonly writable: WritableStream<string>;
|
|
235
|
+
}
|
|
236
|
+
var TextEncoderStream: {
|
|
237
|
+
prototype: TextEncoderStream;
|
|
238
|
+
new(): TextEncoderStream;
|
|
239
|
+
};
|
|
268
240
|
interface TransformStream<I = any, O = any> {
|
|
269
241
|
readonly readable: ReadableStream<O>;
|
|
270
242
|
readonly writable: WritableStream<I>;
|
|
271
243
|
}
|
|
272
|
-
|
|
244
|
+
var TransformStream: {
|
|
273
245
|
prototype: TransformStream;
|
|
274
246
|
new<I = any, O = any>(
|
|
275
247
|
transformer?: Transformer<I, O>,
|
|
@@ -283,31 +255,28 @@ declare module "stream/web" {
|
|
|
283
255
|
error(reason?: any): void;
|
|
284
256
|
terminate(): void;
|
|
285
257
|
}
|
|
286
|
-
|
|
258
|
+
var TransformStreamDefaultController: {
|
|
287
259
|
prototype: TransformStreamDefaultController;
|
|
288
260
|
new(): TransformStreamDefaultController;
|
|
289
261
|
};
|
|
290
|
-
/**
|
|
291
|
-
* This Streams API interface provides a standard abstraction for writing
|
|
292
|
-
* streaming data to a destination, known as a sink. This object comes with
|
|
293
|
-
* built-in back pressure and queuing.
|
|
294
|
-
*/
|
|
295
262
|
interface WritableStream<W = any> {
|
|
296
263
|
readonly locked: boolean;
|
|
297
264
|
abort(reason?: any): Promise<void>;
|
|
298
265
|
close(): Promise<void>;
|
|
299
266
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
300
267
|
}
|
|
301
|
-
|
|
268
|
+
var WritableStream: {
|
|
302
269
|
prototype: WritableStream;
|
|
303
270
|
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
304
271
|
};
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
272
|
+
interface WritableStreamDefaultController {
|
|
273
|
+
readonly signal: AbortSignal;
|
|
274
|
+
error(e?: any): void;
|
|
275
|
+
}
|
|
276
|
+
var WritableStreamDefaultController: {
|
|
277
|
+
prototype: WritableStreamDefaultController;
|
|
278
|
+
new(): WritableStreamDefaultController;
|
|
279
|
+
};
|
|
311
280
|
interface WritableStreamDefaultWriter<W = any> {
|
|
312
281
|
readonly closed: Promise<void>;
|
|
313
282
|
readonly desiredSize: number | null;
|
|
@@ -317,257 +286,11 @@ declare module "stream/web" {
|
|
|
317
286
|
releaseLock(): void;
|
|
318
287
|
write(chunk?: W): Promise<void>;
|
|
319
288
|
}
|
|
320
|
-
|
|
289
|
+
var WritableStreamDefaultWriter: {
|
|
321
290
|
prototype: WritableStreamDefaultWriter;
|
|
322
291
|
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
|
|
323
292
|
};
|
|
324
|
-
/**
|
|
325
|
-
* This Streams API interface represents a controller allowing control of a
|
|
326
|
-
* WritableStream's state. When constructing a WritableStream, the
|
|
327
|
-
* underlying sink is given a corresponding WritableStreamDefaultController
|
|
328
|
-
* instance to manipulate.
|
|
329
|
-
*/
|
|
330
|
-
interface WritableStreamDefaultController {
|
|
331
|
-
error(e?: any): void;
|
|
332
|
-
}
|
|
333
|
-
const WritableStreamDefaultController: {
|
|
334
|
-
prototype: WritableStreamDefaultController;
|
|
335
|
-
new(): WritableStreamDefaultController;
|
|
336
|
-
};
|
|
337
|
-
interface QueuingStrategy<T = any> {
|
|
338
|
-
highWaterMark?: number;
|
|
339
|
-
size?: QueuingStrategySize<T>;
|
|
340
|
-
}
|
|
341
|
-
interface QueuingStrategySize<T = any> {
|
|
342
|
-
(chunk?: T): number;
|
|
343
|
-
}
|
|
344
|
-
interface QueuingStrategyInit {
|
|
345
|
-
/**
|
|
346
|
-
* Creates a new ByteLengthQueuingStrategy with the provided high water
|
|
347
|
-
* mark.
|
|
348
|
-
*
|
|
349
|
-
* Note that the provided high water mark will not be validated ahead of
|
|
350
|
-
* time. Instead, if it is negative, NaN, or not a number, the resulting
|
|
351
|
-
* ByteLengthQueuingStrategy will cause the corresponding stream
|
|
352
|
-
* constructor to throw.
|
|
353
|
-
*/
|
|
354
|
-
highWaterMark: number;
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* This Streams API interface provides a built-in byte length queuing
|
|
358
|
-
* strategy that can be used when constructing streams.
|
|
359
|
-
*/
|
|
360
|
-
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
361
|
-
readonly highWaterMark: number;
|
|
362
|
-
readonly size: QueuingStrategySize<ArrayBufferView>;
|
|
363
|
-
}
|
|
364
|
-
const ByteLengthQueuingStrategy: {
|
|
365
|
-
prototype: ByteLengthQueuingStrategy;
|
|
366
|
-
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* This Streams API interface provides a built-in byte length queuing
|
|
370
|
-
* strategy that can be used when constructing streams.
|
|
371
|
-
*/
|
|
372
|
-
interface CountQueuingStrategy extends QueuingStrategy {
|
|
373
|
-
readonly highWaterMark: number;
|
|
374
|
-
readonly size: QueuingStrategySize;
|
|
375
|
-
}
|
|
376
|
-
const CountQueuingStrategy: {
|
|
377
|
-
prototype: CountQueuingStrategy;
|
|
378
|
-
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
379
|
-
};
|
|
380
|
-
interface TextEncoderStream {
|
|
381
|
-
/** Returns "utf-8". */
|
|
382
|
-
readonly encoding: "utf-8";
|
|
383
|
-
readonly readable: ReadableStream<Uint8Array>;
|
|
384
|
-
readonly writable: WritableStream<string>;
|
|
385
|
-
readonly [Symbol.toStringTag]: string;
|
|
386
|
-
}
|
|
387
|
-
const TextEncoderStream: {
|
|
388
|
-
prototype: TextEncoderStream;
|
|
389
|
-
new(): TextEncoderStream;
|
|
390
|
-
};
|
|
391
|
-
interface TextDecoderOptions {
|
|
392
|
-
fatal?: boolean;
|
|
393
|
-
ignoreBOM?: boolean;
|
|
394
|
-
}
|
|
395
|
-
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
396
|
-
interface TextDecoderStream {
|
|
397
|
-
/** Returns encoding's name, lower cased. */
|
|
398
|
-
readonly encoding: string;
|
|
399
|
-
/** Returns `true` if error mode is "fatal", and `false` otherwise. */
|
|
400
|
-
readonly fatal: boolean;
|
|
401
|
-
/** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
|
|
402
|
-
readonly ignoreBOM: boolean;
|
|
403
|
-
readonly readable: ReadableStream<string>;
|
|
404
|
-
readonly writable: WritableStream<BufferSource>;
|
|
405
|
-
readonly [Symbol.toStringTag]: string;
|
|
406
|
-
}
|
|
407
|
-
const TextDecoderStream: {
|
|
408
|
-
prototype: TextDecoderStream;
|
|
409
|
-
new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
410
|
-
};
|
|
411
|
-
type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip";
|
|
412
|
-
class CompressionStream {
|
|
413
|
-
constructor(format: CompressionFormat);
|
|
414
|
-
readonly readable: ReadableStream;
|
|
415
|
-
readonly writable: WritableStream;
|
|
416
|
-
}
|
|
417
|
-
class DecompressionStream {
|
|
418
|
-
constructor(format: CompressionFormat);
|
|
419
|
-
readonly readable: ReadableStream;
|
|
420
|
-
readonly writable: WritableStream;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
global {
|
|
424
|
-
interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
|
|
425
|
-
/**
|
|
426
|
-
* `ByteLengthQueuingStrategy` class is a global reference for `import { ByteLengthQueuingStrategy } from 'node:stream/web'`.
|
|
427
|
-
* https://nodejs.org/api/globals.html#class-bytelengthqueuingstrategy
|
|
428
|
-
* @since v18.0.0
|
|
429
|
-
*/
|
|
430
|
-
var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T }
|
|
431
|
-
? T
|
|
432
|
-
: typeof import("stream/web").ByteLengthQueuingStrategy;
|
|
433
|
-
|
|
434
|
-
interface CountQueuingStrategy extends _CountQueuingStrategy {}
|
|
435
|
-
/**
|
|
436
|
-
* `CountQueuingStrategy` class is a global reference for `import { CountQueuingStrategy } from 'node:stream/web'`.
|
|
437
|
-
* https://nodejs.org/api/globals.html#class-countqueuingstrategy
|
|
438
|
-
* @since v18.0.0
|
|
439
|
-
*/
|
|
440
|
-
var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T
|
|
441
|
-
: typeof import("stream/web").CountQueuingStrategy;
|
|
442
|
-
|
|
443
|
-
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
444
|
-
|
|
445
|
-
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
446
|
-
/**
|
|
447
|
-
* `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
|
|
448
|
-
* https://nodejs.org/api/globals.html#class-readablebytestreamcontroller
|
|
449
|
-
* @since v18.0.0
|
|
450
|
-
*/
|
|
451
|
-
var ReadableByteStreamController: typeof globalThis extends
|
|
452
|
-
{ onmessage: any; ReadableByteStreamController: infer T } ? T
|
|
453
|
-
: typeof import("stream/web").ReadableByteStreamController;
|
|
454
|
-
|
|
455
|
-
interface ReadableStream<R = any> extends _ReadableStream<R> {}
|
|
456
|
-
/**
|
|
457
|
-
* `ReadableStream` class is a global reference for `import { ReadableStream } from 'node:stream/web'`.
|
|
458
|
-
* https://nodejs.org/api/globals.html#class-readablestream
|
|
459
|
-
* @since v18.0.0
|
|
460
|
-
*/
|
|
461
|
-
var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T
|
|
462
|
-
: typeof import("stream/web").ReadableStream;
|
|
463
|
-
|
|
464
|
-
interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {}
|
|
465
|
-
/**
|
|
466
|
-
* `ReadableStreamBYOBReader` class is a global reference for `import { ReadableStreamBYOBReader } from 'node:stream/web'`.
|
|
467
|
-
* https://nodejs.org/api/globals.html#class-readablestreambyobreader
|
|
468
|
-
* @since v18.0.0
|
|
469
|
-
*/
|
|
470
|
-
var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T }
|
|
471
|
-
? T
|
|
472
|
-
: typeof import("stream/web").ReadableStreamBYOBReader;
|
|
473
|
-
|
|
474
|
-
interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {}
|
|
475
|
-
/**
|
|
476
|
-
* `ReadableStreamBYOBRequest` class is a global reference for `import { ReadableStreamBYOBRequest } from 'node:stream/web'`.
|
|
477
|
-
* https://nodejs.org/api/globals.html#class-readablestreambyobrequest
|
|
478
|
-
* @since v18.0.0
|
|
479
|
-
*/
|
|
480
|
-
var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T }
|
|
481
|
-
? T
|
|
482
|
-
: typeof import("stream/web").ReadableStreamBYOBRequest;
|
|
483
|
-
|
|
484
|
-
interface ReadableStreamDefaultController<R = any> extends _ReadableStreamDefaultController<R> {}
|
|
485
|
-
/**
|
|
486
|
-
* `ReadableStreamDefaultController` class is a global reference for `import { ReadableStreamDefaultController } from 'node:stream/web'`.
|
|
487
|
-
* https://nodejs.org/api/globals.html#class-readablestreamdefaultcontroller
|
|
488
|
-
* @since v18.0.0
|
|
489
|
-
*/
|
|
490
|
-
var ReadableStreamDefaultController: typeof globalThis extends
|
|
491
|
-
{ onmessage: any; ReadableStreamDefaultController: infer T } ? T
|
|
492
|
-
: typeof import("stream/web").ReadableStreamDefaultController;
|
|
493
|
-
|
|
494
|
-
interface ReadableStreamDefaultReader<R = any> extends _ReadableStreamDefaultReader<R> {}
|
|
495
|
-
/**
|
|
496
|
-
* `ReadableStreamDefaultReader` class is a global reference for `import { ReadableStreamDefaultReader } from 'node:stream/web'`.
|
|
497
|
-
* https://nodejs.org/api/globals.html#class-readablestreamdefaultreader
|
|
498
|
-
* @since v18.0.0
|
|
499
|
-
*/
|
|
500
|
-
var ReadableStreamDefaultReader: typeof globalThis extends
|
|
501
|
-
{ onmessage: any; ReadableStreamDefaultReader: infer T } ? T
|
|
502
|
-
: typeof import("stream/web").ReadableStreamDefaultReader;
|
|
503
|
-
|
|
504
|
-
interface TextDecoderStream extends _TextDecoderStream {}
|
|
505
|
-
/**
|
|
506
|
-
* `TextDecoderStream` class is a global reference for `import { TextDecoderStream } from 'node:stream/web'`.
|
|
507
|
-
* https://nodejs.org/api/globals.html#class-textdecoderstream
|
|
508
|
-
* @since v18.0.0
|
|
509
|
-
*/
|
|
510
|
-
var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T
|
|
511
|
-
: typeof import("stream/web").TextDecoderStream;
|
|
512
|
-
|
|
513
|
-
interface TextEncoderStream extends _TextEncoderStream {}
|
|
514
|
-
/**
|
|
515
|
-
* `TextEncoderStream` class is a global reference for `import { TextEncoderStream } from 'node:stream/web'`.
|
|
516
|
-
* https://nodejs.org/api/globals.html#class-textencoderstream
|
|
517
|
-
* @since v18.0.0
|
|
518
|
-
*/
|
|
519
|
-
var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T
|
|
520
|
-
: typeof import("stream/web").TextEncoderStream;
|
|
521
|
-
|
|
522
|
-
interface TransformStream<I = any, O = any> extends _TransformStream<I, O> {}
|
|
523
|
-
/**
|
|
524
|
-
* `TransformStream` class is a global reference for `import { TransformStream } from 'node:stream/web'`.
|
|
525
|
-
* https://nodejs.org/api/globals.html#class-transformstream
|
|
526
|
-
* @since v18.0.0
|
|
527
|
-
*/
|
|
528
|
-
var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T
|
|
529
|
-
: typeof import("stream/web").TransformStream;
|
|
530
|
-
|
|
531
|
-
interface TransformStreamDefaultController<O = any> extends _TransformStreamDefaultController<O> {}
|
|
532
|
-
/**
|
|
533
|
-
* `TransformStreamDefaultController` class is a global reference for `import { TransformStreamDefaultController } from 'node:stream/web'`.
|
|
534
|
-
* https://nodejs.org/api/globals.html#class-transformstreamdefaultcontroller
|
|
535
|
-
* @since v18.0.0
|
|
536
|
-
*/
|
|
537
|
-
var TransformStreamDefaultController: typeof globalThis extends
|
|
538
|
-
{ onmessage: any; TransformStreamDefaultController: infer T } ? T
|
|
539
|
-
: typeof import("stream/web").TransformStreamDefaultController;
|
|
540
|
-
|
|
541
|
-
interface WritableStream<W = any> extends _WritableStream<W> {}
|
|
542
|
-
/**
|
|
543
|
-
* `WritableStream` class is a global reference for `import { WritableStream } from 'node:stream/web'`.
|
|
544
|
-
* https://nodejs.org/api/globals.html#class-writablestream
|
|
545
|
-
* @since v18.0.0
|
|
546
|
-
*/
|
|
547
|
-
var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T
|
|
548
|
-
: typeof import("stream/web").WritableStream;
|
|
549
|
-
|
|
550
|
-
interface WritableStreamDefaultController extends _WritableStreamDefaultController {}
|
|
551
|
-
/**
|
|
552
|
-
* `WritableStreamDefaultController` class is a global reference for `import { WritableStreamDefaultController } from 'node:stream/web'`.
|
|
553
|
-
* https://nodejs.org/api/globals.html#class-writablestreamdefaultcontroller
|
|
554
|
-
* @since v18.0.0
|
|
555
|
-
*/
|
|
556
|
-
var WritableStreamDefaultController: typeof globalThis extends
|
|
557
|
-
{ onmessage: any; WritableStreamDefaultController: infer T } ? T
|
|
558
|
-
: typeof import("stream/web").WritableStreamDefaultController;
|
|
559
|
-
|
|
560
|
-
interface WritableStreamDefaultWriter<W = any> extends _WritableStreamDefaultWriter<W> {}
|
|
561
|
-
/**
|
|
562
|
-
* `WritableStreamDefaultWriter` class is a global reference for `import { WritableStreamDefaultWriter } from 'node:stream/web'`.
|
|
563
|
-
* https://nodejs.org/api/globals.html#class-writablestreamdefaultwriter
|
|
564
|
-
* @since v18.0.0
|
|
565
|
-
*/
|
|
566
|
-
var WritableStreamDefaultWriter: typeof globalThis extends
|
|
567
|
-
{ onmessage: any; WritableStreamDefaultWriter: infer T } ? T
|
|
568
|
-
: typeof import("stream/web").WritableStreamDefaultWriter;
|
|
569
|
-
}
|
|
570
293
|
}
|
|
571
|
-
declare module "
|
|
572
|
-
export * from "stream/web";
|
|
294
|
+
declare module "stream/web" {
|
|
295
|
+
export * from "node:stream/web";
|
|
573
296
|
}
|