@emulsify/cli 1.11.3 → 1.12.0
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/dist/index.js +3 -1
- package/dist/node_modules/.package-lock.json +34 -24
- package/dist/node_modules/@types/node/README.md +2 -2
- package/dist/node_modules/@types/node/assert.d.ts +23 -1
- package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
- package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
- package/dist/node_modules/@types/node/buffer.d.ts +19 -17
- package/dist/node_modules/@types/node/child_process.d.ts +88 -161
- package/dist/node_modules/@types/node/cluster.d.ts +5 -6
- package/dist/node_modules/@types/node/constants.d.ts +14 -12
- package/dist/node_modules/@types/node/crypto.d.ts +237 -171
- package/dist/node_modules/@types/node/dgram.d.ts +15 -14
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
- package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
- package/dist/node_modules/@types/node/dns.d.ts +28 -21
- package/dist/node_modules/@types/node/events.d.ts +81 -35
- package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
- package/dist/node_modules/@types/node/fs.d.ts +251 -193
- package/dist/node_modules/@types/node/globals.d.ts +146 -442
- package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/dist/node_modules/@types/node/http.d.ts +137 -32
- package/dist/node_modules/@types/node/http2.d.ts +102 -26
- package/dist/node_modules/@types/node/https.d.ts +94 -60
- package/dist/node_modules/@types/node/index.d.ts +5 -3
- package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
- package/dist/node_modules/@types/node/module.d.ts +362 -138
- package/dist/node_modules/@types/node/net.d.ts +27 -20
- package/dist/node_modules/@types/node/os.d.ts +14 -3
- package/dist/node_modules/@types/node/package.json +4 -89
- package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
- package/dist/node_modules/@types/node/process.d.ts +108 -35
- package/dist/node_modules/@types/node/querystring.d.ts +2 -3
- package/dist/node_modules/@types/node/readline/promises.d.ts +15 -3
- package/dist/node_modules/@types/node/readline.d.ts +66 -17
- package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
- package/dist/node_modules/@types/node/stream.d.ts +963 -1014
- package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/dist/node_modules/@types/node/test.d.ts +1504 -1655
- package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
- package/dist/node_modules/@types/node/timers.d.ts +157 -111
- package/dist/node_modules/@types/node/tls.d.ts +105 -67
- package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
- package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
- package/dist/node_modules/@types/node/url.d.ts +10 -1
- package/dist/node_modules/@types/node/util.d.ts +43 -10
- package/dist/node_modules/@types/node/v8.d.ts +7 -6
- package/dist/node_modules/@types/node/vm.d.ts +148 -70
- package/dist/node_modules/@types/node/wasi.d.ts +1 -1
- package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
- package/dist/node_modules/@types/node/zlib.d.ts +21 -20
- package/dist/node_modules/debug/package.json +7 -3
- package/dist/node_modules/debug/src/browser.js +2 -1
- package/dist/node_modules/debug/src/common.js +57 -39
- package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
- package/dist/node_modules/fast-uri/LICENSE +3 -1
- package/dist/node_modules/fast-uri/README.md +55 -37
- package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
- package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/dist/node_modules/fast-uri/eslint.config.js +6 -0
- package/dist/node_modules/fast-uri/index.js +98 -61
- package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
- package/dist/node_modules/fast-uri/lib/utils.js +217 -123
- package/dist/node_modules/fast-uri/package.json +44 -14
- package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
- package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
- package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
- package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
- package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
- package/dist/node_modules/fast-uri/test/util.test.js +23 -8
- package/dist/node_modules/fast-uri/tsconfig.json +9 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
- package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
- package/dist/node_modules/fs-extra/LICENSE +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -1
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
- package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
- package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonfile/README.md +1 -1
- package/dist/node_modules/jsonfile/index.js +3 -3
- package/dist/node_modules/jsonfile/package.json +1 -1
- package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
- package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
- package/dist/node_modules/simple-git/package.json +6 -6
- package/dist/node_modules/simple-git/readme.md +8 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
- package/dist/node_modules/undici-types/filereader.d.ts +1 -1
- package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/patch.d.ts +0 -38
- package/dist/node_modules/undici-types/readable.d.ts +5 -0
- package/dist/node_modules/undici-types/webidl.d.ts +6 -0
- package/dist/node_modules/undici-types/websocket.d.ts +0 -2
- package/dist/package-lock.json +969 -1002
- package/dist/package.json +1 -1
- package/dist/util/getAvailableStarters.js +2 -2
- package/package.json +1 -1
- package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
- package/dist/node_modules/fast-uri/benchmark.js +0 -105
- package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
- package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
+
import { Control, MessageOptions, SendHandle } from "node:child_process";
|
|
3
|
+
import { PathLike } from "node:fs";
|
|
2
4
|
import * as tty from "node:tty";
|
|
3
5
|
import { Worker } from "node:worker_threads";
|
|
4
6
|
|
|
@@ -168,6 +170,59 @@ declare module "process" {
|
|
|
168
170
|
libUrl?: string | undefined;
|
|
169
171
|
lts?: string | undefined;
|
|
170
172
|
}
|
|
173
|
+
interface ProcessFeatures {
|
|
174
|
+
/**
|
|
175
|
+
* A boolean value that is `true` if the current Node.js build is caching builtin modules.
|
|
176
|
+
* @since v12.0.0
|
|
177
|
+
*/
|
|
178
|
+
readonly cached_builtins: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* A boolean value that is `true` if the current Node.js build is a debug build.
|
|
181
|
+
* @since v0.5.5
|
|
182
|
+
*/
|
|
183
|
+
readonly debug: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* A boolean value that is `true` if the current Node.js build includes the inspector.
|
|
186
|
+
* @since v11.10.0
|
|
187
|
+
*/
|
|
188
|
+
readonly inspector: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* A boolean value that is `true` if the current Node.js build includes support for IPv6.
|
|
191
|
+
* @since v0.5.3
|
|
192
|
+
*/
|
|
193
|
+
readonly ipv6: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* A boolean value that is `true` if the current Node.js build supports
|
|
196
|
+
* [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require).
|
|
197
|
+
* @since v20.19.0
|
|
198
|
+
*/
|
|
199
|
+
readonly require_module: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* A boolean value that is `true` if the current Node.js build includes support for TLS.
|
|
202
|
+
* @since v0.5.3
|
|
203
|
+
*/
|
|
204
|
+
readonly tls: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
|
|
207
|
+
* @since v4.8.0
|
|
208
|
+
*/
|
|
209
|
+
readonly tls_alpn: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
|
|
212
|
+
* @since v0.11.13
|
|
213
|
+
*/
|
|
214
|
+
readonly tls_ocsp: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
|
|
217
|
+
* @since v0.5.3
|
|
218
|
+
*/
|
|
219
|
+
readonly tls_sni: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* A boolean value that is `true` if the current Node.js build includes support for libuv.
|
|
222
|
+
* @since v0.5.3
|
|
223
|
+
*/
|
|
224
|
+
readonly uv: boolean;
|
|
225
|
+
}
|
|
171
226
|
interface ProcessVersions extends Dict<string> {
|
|
172
227
|
http_parser: string;
|
|
173
228
|
node: string;
|
|
@@ -254,7 +309,7 @@ declare module "process" {
|
|
|
254
309
|
*/
|
|
255
310
|
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
256
311
|
type WarningListener = (warning: Error) => void;
|
|
257
|
-
type MessageListener = (message: unknown, sendHandle:
|
|
312
|
+
type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
|
|
258
313
|
type SignalsListener = (signal: Signals) => void;
|
|
259
314
|
type MultipleResolveListener = (
|
|
260
315
|
type: MultipleResolveType,
|
|
@@ -270,14 +325,46 @@ declare module "process" {
|
|
|
270
325
|
/**
|
|
271
326
|
* Can be used to change the default timezone at runtime
|
|
272
327
|
*/
|
|
273
|
-
TZ?: string;
|
|
328
|
+
TZ?: string | undefined;
|
|
274
329
|
}
|
|
275
330
|
interface HRTime {
|
|
331
|
+
/**
|
|
332
|
+
* This is the legacy version of {@link process.hrtime.bigint()}
|
|
333
|
+
* before bigint was introduced in JavaScript.
|
|
334
|
+
*
|
|
335
|
+
* The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`,
|
|
336
|
+
* where `nanoseconds` is the remaining part of the real time that can't be represented in second precision.
|
|
337
|
+
*
|
|
338
|
+
* `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time.
|
|
339
|
+
* If the parameter passed in is not a tuple `Array`, a TypeError will be thrown.
|
|
340
|
+
* Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior.
|
|
341
|
+
*
|
|
342
|
+
* These times are relative to an arbitrary time in the past,
|
|
343
|
+
* and not related to the time of day and therefore not subject to clock drift.
|
|
344
|
+
* The primary use is for measuring performance between intervals:
|
|
345
|
+
* ```js
|
|
346
|
+
* const { hrtime } = require('node:process');
|
|
347
|
+
* const NS_PER_SEC = 1e9;
|
|
348
|
+
* const time = hrtime();
|
|
349
|
+
* // [ 1800216, 25 ]
|
|
350
|
+
*
|
|
351
|
+
* setTimeout(() => {
|
|
352
|
+
* const diff = hrtime(time);
|
|
353
|
+
* // [ 1, 552 ]
|
|
354
|
+
*
|
|
355
|
+
* console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
|
|
356
|
+
* // Benchmark took 1000000552 nanoseconds
|
|
357
|
+
* }, 1000);
|
|
358
|
+
* ```
|
|
359
|
+
* @since 0.7.6
|
|
360
|
+
* @legacy Use {@link process.hrtime.bigint()} instead.
|
|
361
|
+
* @param time The result of a previous call to `process.hrtime()`
|
|
362
|
+
*/
|
|
276
363
|
(time?: [number, number]): [number, number];
|
|
277
364
|
/**
|
|
278
|
-
* The `bigint` version of the
|
|
365
|
+
* The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`.
|
|
279
366
|
*
|
|
280
|
-
* Unlike
|
|
367
|
+
* Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
|
|
281
368
|
* ```js
|
|
282
369
|
* import { hrtime } from 'node:process';
|
|
283
370
|
*
|
|
@@ -292,6 +379,7 @@ declare module "process" {
|
|
|
292
379
|
* // Benchmark took 1154389282 nanoseconds
|
|
293
380
|
* }, 1000);
|
|
294
381
|
* ```
|
|
382
|
+
* @since v10.7.0
|
|
295
383
|
*/
|
|
296
384
|
bigint(): bigint;
|
|
297
385
|
}
|
|
@@ -881,7 +969,7 @@ declare module "process" {
|
|
|
881
969
|
* @since v0.1.13
|
|
882
970
|
* @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
|
|
883
971
|
*/
|
|
884
|
-
exit(code?: number | string | null
|
|
972
|
+
exit(code?: number | string | null): never;
|
|
885
973
|
/**
|
|
886
974
|
* A number which will be the process exit code, when the process either
|
|
887
975
|
* exits gracefully, or is exited via {@link exit} without specifying
|
|
@@ -892,7 +980,7 @@ declare module "process" {
|
|
|
892
980
|
* @default undefined
|
|
893
981
|
* @since v0.11.8
|
|
894
982
|
*/
|
|
895
|
-
exitCode
|
|
983
|
+
exitCode: number | string | number | undefined;
|
|
896
984
|
/**
|
|
897
985
|
* The `process.getActiveResourcesInfo()` method returns an array of strings containing
|
|
898
986
|
* the types of the active resources that are currently keeping the event loop alive.
|
|
@@ -1323,7 +1411,7 @@ declare module "process" {
|
|
|
1323
1411
|
* @since v20.12.0
|
|
1324
1412
|
* @param path The path to the .env file
|
|
1325
1413
|
*/
|
|
1326
|
-
loadEnvFile(path?:
|
|
1414
|
+
loadEnvFile(path?: PathLike): void;
|
|
1327
1415
|
/**
|
|
1328
1416
|
* The `process.pid` property returns the PID of the process.
|
|
1329
1417
|
*
|
|
@@ -1413,7 +1501,7 @@ declare module "process" {
|
|
|
1413
1501
|
* @since v0.1.17
|
|
1414
1502
|
* @deprecated Since v14.0.0 - Use `main` instead.
|
|
1415
1503
|
*/
|
|
1416
|
-
mainModule?: Module
|
|
1504
|
+
mainModule?: Module;
|
|
1417
1505
|
memoryUsage: MemoryUsageFn;
|
|
1418
1506
|
/**
|
|
1419
1507
|
* Gets the amount of memory available to the process (in bytes) based on
|
|
@@ -1579,16 +1667,7 @@ declare module "process" {
|
|
|
1579
1667
|
* @since v3.0.0
|
|
1580
1668
|
*/
|
|
1581
1669
|
readonly release: ProcessRelease;
|
|
1582
|
-
features:
|
|
1583
|
-
inspector: boolean;
|
|
1584
|
-
debug: boolean;
|
|
1585
|
-
uv: boolean;
|
|
1586
|
-
ipv6: boolean;
|
|
1587
|
-
tls_alpn: boolean;
|
|
1588
|
-
tls_sni: boolean;
|
|
1589
|
-
tls_ocsp: boolean;
|
|
1590
|
-
tls: boolean;
|
|
1591
|
-
};
|
|
1670
|
+
readonly features: ProcessFeatures;
|
|
1592
1671
|
/**
|
|
1593
1672
|
* `process.umask()` returns the Node.js process's file mode creation mask. Child
|
|
1594
1673
|
* processes inherit the mask from the parent process.
|
|
@@ -1616,18 +1695,7 @@ declare module "process" {
|
|
|
1616
1695
|
* If no IPC channel exists, this property is undefined.
|
|
1617
1696
|
* @since v7.1.0
|
|
1618
1697
|
*/
|
|
1619
|
-
channel?:
|
|
1620
|
-
/**
|
|
1621
|
-
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1622
|
-
* @since v7.1.0
|
|
1623
|
-
*/
|
|
1624
|
-
ref(): void;
|
|
1625
|
-
/**
|
|
1626
|
-
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1627
|
-
* @since v7.1.0
|
|
1628
|
-
*/
|
|
1629
|
-
unref(): void;
|
|
1630
|
-
};
|
|
1698
|
+
channel?: Control;
|
|
1631
1699
|
/**
|
|
1632
1700
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1633
1701
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -1641,10 +1709,8 @@ declare module "process" {
|
|
|
1641
1709
|
*/
|
|
1642
1710
|
send?(
|
|
1643
1711
|
message: any,
|
|
1644
|
-
sendHandle?:
|
|
1645
|
-
options?:
|
|
1646
|
-
keepOpen?: boolean | undefined;
|
|
1647
|
-
},
|
|
1712
|
+
sendHandle?: SendHandle,
|
|
1713
|
+
options?: MessageOptions,
|
|
1648
1714
|
callback?: (error: Error | null) => void,
|
|
1649
1715
|
): boolean;
|
|
1650
1716
|
/**
|
|
@@ -1786,6 +1852,7 @@ declare module "process" {
|
|
|
1786
1852
|
addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1787
1853
|
addListener(event: "warning", listener: WarningListener): this;
|
|
1788
1854
|
addListener(event: "message", listener: MessageListener): this;
|
|
1855
|
+
addListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1789
1856
|
addListener(event: Signals, listener: SignalsListener): this;
|
|
1790
1857
|
addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1791
1858
|
addListener(event: "worker", listener: WorkerListener): this;
|
|
@@ -1797,7 +1864,8 @@ declare module "process" {
|
|
|
1797
1864
|
emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
|
|
1798
1865
|
emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
|
|
1799
1866
|
emit(event: "warning", warning: Error): boolean;
|
|
1800
|
-
emit(event: "message", message: unknown, sendHandle:
|
|
1867
|
+
emit(event: "message", message: unknown, sendHandle: SendHandle): this;
|
|
1868
|
+
emit(event: "workerMessage", value: any, source: number): this;
|
|
1801
1869
|
emit(event: Signals, signal?: Signals): boolean;
|
|
1802
1870
|
emit(
|
|
1803
1871
|
event: "multipleResolves",
|
|
@@ -1815,6 +1883,7 @@ declare module "process" {
|
|
|
1815
1883
|
on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1816
1884
|
on(event: "warning", listener: WarningListener): this;
|
|
1817
1885
|
on(event: "message", listener: MessageListener): this;
|
|
1886
|
+
on(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1818
1887
|
on(event: Signals, listener: SignalsListener): this;
|
|
1819
1888
|
on(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1820
1889
|
on(event: "worker", listener: WorkerListener): this;
|
|
@@ -1828,6 +1897,7 @@ declare module "process" {
|
|
|
1828
1897
|
once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1829
1898
|
once(event: "warning", listener: WarningListener): this;
|
|
1830
1899
|
once(event: "message", listener: MessageListener): this;
|
|
1900
|
+
once(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1831
1901
|
once(event: Signals, listener: SignalsListener): this;
|
|
1832
1902
|
once(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1833
1903
|
once(event: "worker", listener: WorkerListener): this;
|
|
@@ -1841,6 +1911,7 @@ declare module "process" {
|
|
|
1841
1911
|
prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1842
1912
|
prependListener(event: "warning", listener: WarningListener): this;
|
|
1843
1913
|
prependListener(event: "message", listener: MessageListener): this;
|
|
1914
|
+
prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1844
1915
|
prependListener(event: Signals, listener: SignalsListener): this;
|
|
1845
1916
|
prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1846
1917
|
prependListener(event: "worker", listener: WorkerListener): this;
|
|
@@ -1853,6 +1924,7 @@ declare module "process" {
|
|
|
1853
1924
|
prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1854
1925
|
prependOnceListener(event: "warning", listener: WarningListener): this;
|
|
1855
1926
|
prependOnceListener(event: "message", listener: MessageListener): this;
|
|
1927
|
+
prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1856
1928
|
prependOnceListener(event: Signals, listener: SignalsListener): this;
|
|
1857
1929
|
prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1858
1930
|
prependOnceListener(event: "worker", listener: WorkerListener): this;
|
|
@@ -1865,6 +1937,7 @@ declare module "process" {
|
|
|
1865
1937
|
listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
|
|
1866
1938
|
listeners(event: "warning"): WarningListener[];
|
|
1867
1939
|
listeners(event: "message"): MessageListener[];
|
|
1940
|
+
listeners(event: "workerMessage"): ((value: any, source: number) => void)[];
|
|
1868
1941
|
listeners(event: Signals): SignalsListener[];
|
|
1869
1942
|
listeners(event: "multipleResolves"): MultipleResolveListener[];
|
|
1870
1943
|
listeners(event: "worker"): WorkerListener[];
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
* @experimental
|
|
4
4
|
*/
|
|
5
5
|
declare module "readline/promises" {
|
|
6
|
-
import { AsyncCompleter, Completer, Direction, Interface as _Interface, ReadLineOptions } from "node:readline";
|
|
7
6
|
import { Abortable } from "node:events";
|
|
7
|
+
import {
|
|
8
|
+
CompleterResult,
|
|
9
|
+
Direction,
|
|
10
|
+
Interface as _Interface,
|
|
11
|
+
ReadLineOptions as _ReadLineOptions,
|
|
12
|
+
} from "node:readline";
|
|
8
13
|
/**
|
|
9
14
|
* Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a
|
|
10
15
|
* single `input` `Readable` stream and a single `output` `Writable` stream.
|
|
@@ -60,7 +65,7 @@ declare module "readline/promises" {
|
|
|
60
65
|
constructor(
|
|
61
66
|
stream: NodeJS.WritableStream,
|
|
62
67
|
options?: {
|
|
63
|
-
autoCommit?: boolean;
|
|
68
|
+
autoCommit?: boolean | undefined;
|
|
64
69
|
},
|
|
65
70
|
);
|
|
66
71
|
/**
|
|
@@ -111,6 +116,13 @@ declare module "readline/promises" {
|
|
|
111
116
|
*/
|
|
112
117
|
rollback(): this;
|
|
113
118
|
}
|
|
119
|
+
type Completer = (line: string) => CompleterResult | Promise<CompleterResult>;
|
|
120
|
+
interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> {
|
|
121
|
+
/**
|
|
122
|
+
* An optional function used for Tab autocompletion.
|
|
123
|
+
*/
|
|
124
|
+
completer?: Completer | undefined;
|
|
125
|
+
}
|
|
114
126
|
/**
|
|
115
127
|
* The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance.
|
|
116
128
|
*
|
|
@@ -140,7 +152,7 @@ declare module "readline/promises" {
|
|
|
140
152
|
function createInterface(
|
|
141
153
|
input: NodeJS.ReadableStream,
|
|
142
154
|
output?: NodeJS.WritableStream,
|
|
143
|
-
completer?: Completer
|
|
155
|
+
completer?: Completer,
|
|
144
156
|
terminal?: boolean,
|
|
145
157
|
): Interface;
|
|
146
158
|
function createInterface(options: ReadLineOptions): Interface;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream
|
|
3
|
-
* (such as [`process.stdin`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdin)) one line at a time.
|
|
2
|
+
* The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream
|
|
3
|
+
* (such as [`process.stdin`](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/process.html#processstdin)) one line at a time.
|
|
4
4
|
*
|
|
5
5
|
* To use the promise-based APIs:
|
|
6
6
|
*
|
|
@@ -46,7 +46,7 @@ declare module "readline" {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
|
|
49
|
-
* single `input` [Readable](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream.
|
|
49
|
+
* single `input` [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream.
|
|
50
50
|
* The `output` stream is used to print prompts for user input that arrives on,
|
|
51
51
|
* and is read from, the `input` stream.
|
|
52
52
|
* @since v0.1.104
|
|
@@ -100,7 +100,7 @@ declare module "readline" {
|
|
|
100
100
|
* > Instances of the `readline.Interface` class are constructed using the
|
|
101
101
|
* > `readline.createInterface()` method.
|
|
102
102
|
*
|
|
103
|
-
* @see https://nodejs.org/
|
|
103
|
+
* @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor
|
|
104
104
|
*/
|
|
105
105
|
protected constructor(
|
|
106
106
|
input: NodeJS.ReadableStream,
|
|
@@ -114,7 +114,7 @@ declare module "readline" {
|
|
|
114
114
|
* > Instances of the `readline.Interface` class are constructed using the
|
|
115
115
|
* > `readline.createInterface()` method.
|
|
116
116
|
*
|
|
117
|
-
* @see https://nodejs.org/
|
|
117
|
+
* @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor
|
|
118
118
|
*/
|
|
119
119
|
protected constructor(options: ReadLineOptions);
|
|
120
120
|
/**
|
|
@@ -314,29 +314,78 @@ declare module "readline" {
|
|
|
314
314
|
) => void;
|
|
315
315
|
export type CompleterResult = [string[], string];
|
|
316
316
|
export interface ReadLineOptions {
|
|
317
|
+
/**
|
|
318
|
+
* The [`Readable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream to listen to
|
|
319
|
+
*/
|
|
317
320
|
input: NodeJS.ReadableStream;
|
|
321
|
+
/**
|
|
322
|
+
* The [`Writable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream to write readline data to.
|
|
323
|
+
*/
|
|
318
324
|
output?: NodeJS.WritableStream | undefined;
|
|
325
|
+
/**
|
|
326
|
+
* An optional function used for Tab autocompletion.
|
|
327
|
+
*/
|
|
319
328
|
completer?: Completer | AsyncCompleter | undefined;
|
|
329
|
+
/**
|
|
330
|
+
* `true` if the `input` and `output` streams should be treated like a TTY,
|
|
331
|
+
* and have ANSI/VT100 escape codes written to it.
|
|
332
|
+
* Default: checking `isTTY` on the `output` stream upon instantiation.
|
|
333
|
+
*/
|
|
320
334
|
terminal?: boolean | undefined;
|
|
321
335
|
/**
|
|
322
|
-
*
|
|
323
|
-
* only if `terminal` is set to `true` by the user or by an internal `output`
|
|
324
|
-
*
|
|
336
|
+
* Initial list of history lines.
|
|
337
|
+
* This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
|
|
338
|
+
* otherwise the history caching mechanism is not initialized at all.
|
|
325
339
|
* @default []
|
|
326
340
|
*/
|
|
327
341
|
history?: string[] | undefined;
|
|
342
|
+
/**
|
|
343
|
+
* Maximum number of history lines retained.
|
|
344
|
+
* To disable the history set this value to `0`.
|
|
345
|
+
* This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
|
|
346
|
+
* otherwise the history caching mechanism is not initialized at all.
|
|
347
|
+
* @default 30
|
|
348
|
+
*/
|
|
328
349
|
historySize?: number | undefined;
|
|
329
|
-
prompt?: string | undefined;
|
|
330
|
-
crlfDelay?: number | undefined;
|
|
331
350
|
/**
|
|
332
|
-
* If `true`, when a new input line added
|
|
333
|
-
*
|
|
334
|
-
* from the list.
|
|
351
|
+
* If `true`, when a new input line added to the history list duplicates an older one,
|
|
352
|
+
* this removes the older line from the list.
|
|
335
353
|
* @default false
|
|
336
354
|
*/
|
|
337
355
|
removeHistoryDuplicates?: boolean | undefined;
|
|
356
|
+
/**
|
|
357
|
+
* The prompt string to use.
|
|
358
|
+
* @default "> "
|
|
359
|
+
*/
|
|
360
|
+
prompt?: string | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds,
|
|
363
|
+
* both `\r` and `\n` will be treated as separate end-of-line input.
|
|
364
|
+
* `crlfDelay` will be coerced to a number no less than `100`.
|
|
365
|
+
* It can be set to `Infinity`, in which case
|
|
366
|
+
* `\r` followed by `\n` will always be considered a single newline
|
|
367
|
+
* (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v20.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
|
|
368
|
+
* @default 100
|
|
369
|
+
*/
|
|
370
|
+
crlfDelay?: number | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* The duration `readline` will wait for a character
|
|
373
|
+
* (when reading an ambiguous key sequence in milliseconds
|
|
374
|
+
* one that can both form a complete key sequence using the input read so far
|
|
375
|
+
* and can take additional input to complete a longer key sequence).
|
|
376
|
+
* @default 500
|
|
377
|
+
*/
|
|
338
378
|
escapeCodeTimeout?: number | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* The number of spaces a tab is equal to (minimum 1).
|
|
381
|
+
* @default 8
|
|
382
|
+
*/
|
|
339
383
|
tabSize?: number | undefined;
|
|
384
|
+
/**
|
|
385
|
+
* Allows closing the interface using an AbortSignal.
|
|
386
|
+
* Aborting the signal will internally call `close` on the interface.
|
|
387
|
+
*/
|
|
388
|
+
signal?: AbortSignal | undefined;
|
|
340
389
|
}
|
|
341
390
|
/**
|
|
342
391
|
* The `readline.createInterface()` method creates a new `readline.Interface` instance.
|
|
@@ -503,7 +552,7 @@ declare module "readline" {
|
|
|
503
552
|
cols: number;
|
|
504
553
|
}
|
|
505
554
|
/**
|
|
506
|
-
* The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v20.x/api/tty.html) stream
|
|
555
|
+
* The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream
|
|
507
556
|
* in a specified direction identified by `dir`.
|
|
508
557
|
* @since v0.7.7
|
|
509
558
|
* @param callback Invoked once the operation completes.
|
|
@@ -511,7 +560,7 @@ declare module "readline" {
|
|
|
511
560
|
*/
|
|
512
561
|
export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
|
|
513
562
|
/**
|
|
514
|
-
* The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v20.x/api/tty.html) stream from
|
|
563
|
+
* The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream from
|
|
515
564
|
* the current position of the cursor down.
|
|
516
565
|
* @since v0.7.7
|
|
517
566
|
* @param callback Invoked once the operation completes.
|
|
@@ -520,7 +569,7 @@ declare module "readline" {
|
|
|
520
569
|
export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
|
|
521
570
|
/**
|
|
522
571
|
* The `readline.cursorTo()` method moves cursor to the specified position in a
|
|
523
|
-
* given [TTY](https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`.
|
|
572
|
+
* given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`.
|
|
524
573
|
* @since v0.7.7
|
|
525
574
|
* @param callback Invoked once the operation completes.
|
|
526
575
|
* @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
@@ -528,7 +577,7 @@ declare module "readline" {
|
|
|
528
577
|
export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
|
|
529
578
|
/**
|
|
530
579
|
* The `readline.moveCursor()` method moves the cursor _relative_ to its current
|
|
531
|
-
* position in a given [TTY](https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`.
|
|
580
|
+
* position in a given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`.
|
|
532
581
|
* @since v0.7.7
|
|
533
582
|
* @param callback Invoked once the operation completes.
|
|
534
583
|
* @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The utility consumer functions provide common options for consuming
|
|
3
|
+
* streams.
|
|
4
|
+
* @since v16.7.0
|
|
5
|
+
*/
|
|
1
6
|
declare module "stream/consumers" {
|
|
2
|
-
import { Blob as NodeBlob } from "node:buffer";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function
|
|
7
|
+
import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
|
|
8
|
+
import { ReadableStream as WebReadableStream } from "node:stream/web";
|
|
9
|
+
/**
|
|
10
|
+
* @since v16.7.0
|
|
11
|
+
* @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
|
|
12
|
+
*/
|
|
13
|
+
function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
|
|
14
|
+
/**
|
|
15
|
+
* @since v16.7.0
|
|
16
|
+
* @returns Fulfills with a `Blob` containing the full contents of the stream.
|
|
17
|
+
*/
|
|
18
|
+
function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NodeBlob>;
|
|
19
|
+
/**
|
|
20
|
+
* @since v16.7.0
|
|
21
|
+
* @returns Fulfills with a `Buffer` containing the full contents of the stream.
|
|
22
|
+
*/
|
|
23
|
+
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
|
|
24
|
+
/**
|
|
25
|
+
* @since v16.7.0
|
|
26
|
+
* @returns Fulfills with the contents of the stream parsed as a
|
|
27
|
+
* UTF-8 encoded string that is then passed through `JSON.parse()`.
|
|
28
|
+
*/
|
|
29
|
+
function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* @since v16.7.0
|
|
32
|
+
* @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
|
|
33
|
+
*/
|
|
34
|
+
function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
|
|
9
35
|
}
|
|
10
36
|
declare module "node:stream/consumers" {
|
|
11
37
|
export * from "stream/consumers";
|
|
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
|
6
6
|
: import("stream/web").CountQueuingStrategy;
|
|
7
7
|
type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
8
8
|
: import("stream/web").DecompressionStream;
|
|
9
|
+
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
10
|
+
: import("stream/web").QueuingStrategy<T>;
|
|
9
11
|
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
10
12
|
: import("stream/web").ReadableByteStreamController;
|
|
11
13
|
type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
@@ -97,7 +99,7 @@ declare module "stream/web" {
|
|
|
97
99
|
signal?: AbortSignal;
|
|
98
100
|
}
|
|
99
101
|
interface ReadableStreamGenericReader {
|
|
100
|
-
readonly closed: Promise<
|
|
102
|
+
readonly closed: Promise<void>;
|
|
101
103
|
cancel(reason?: any): Promise<void>;
|
|
102
104
|
}
|
|
103
105
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
@@ -205,7 +207,12 @@ declare module "stream/web" {
|
|
|
205
207
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
|
|
206
208
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
207
209
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
|
|
208
|
-
read<T extends ArrayBufferView>(
|
|
210
|
+
read<T extends ArrayBufferView>(
|
|
211
|
+
view: T,
|
|
212
|
+
options?: {
|
|
213
|
+
min?: number;
|
|
214
|
+
},
|
|
215
|
+
): Promise<ReadableStreamReadResult<T>>;
|
|
209
216
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
|
|
210
217
|
releaseLock(): void;
|
|
211
218
|
}
|
|
@@ -302,9 +309,9 @@ declare module "stream/web" {
|
|
|
302
309
|
* sink.
|
|
303
310
|
*/
|
|
304
311
|
interface WritableStreamDefaultWriter<W = any> {
|
|
305
|
-
readonly closed: Promise<
|
|
312
|
+
readonly closed: Promise<void>;
|
|
306
313
|
readonly desiredSize: number | null;
|
|
307
|
-
readonly ready: Promise<
|
|
314
|
+
readonly ready: Promise<void>;
|
|
308
315
|
abort(reason?: any): Promise<void>;
|
|
309
316
|
close(): Promise<void>;
|
|
310
317
|
releaseLock(): void;
|
|
@@ -458,6 +465,8 @@ declare module "stream/web" {
|
|
|
458
465
|
}
|
|
459
466
|
: typeof import("stream/web").DecompressionStream;
|
|
460
467
|
|
|
468
|
+
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
469
|
+
|
|
461
470
|
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
462
471
|
var ReadableByteStreamController: typeof globalThis extends
|
|
463
472
|
{ onmessage: any; ReadableByteStreamController: infer T } ? T
|