node-red-contrib-tak-registration 0.11.0 → 0.11.4
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/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/assert.d.ts +50 -26
- package/node_modules/@types/node/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/buffer.d.ts +46 -38
- package/node_modules/@types/node/child_process.d.ts +278 -138
- package/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/node/console.d.ts +18 -15
- package/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/node/crypto.d.ts +746 -268
- package/node_modules/@types/node/dgram.d.ts +82 -46
- package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/dns.d.ts +204 -63
- package/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +99 -8
- package/node_modules/@types/node/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/fs.d.ts +520 -316
- package/node_modules/@types/node/globals.d.ts +346 -286
- package/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/node/http.d.ts +321 -189
- package/node_modules/@types/node/http2.d.ts +630 -377
- package/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/node/index.d.ts +0 -45
- package/node_modules/@types/node/inspector.d.ts +0 -1
- package/node_modules/@types/node/module.d.ts +75 -31
- package/node_modules/@types/node/net.d.ts +149 -93
- package/node_modules/@types/node/os.d.ts +10 -9
- package/node_modules/@types/node/package.json +88 -90
- package/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/process.d.ts +170 -126
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/node/stream.d.ts +365 -232
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +133 -212
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +26 -11
- package/node_modules/@types/node/tls.d.ts +152 -72
- package/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
- package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
- package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
- package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
- package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
- package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
- package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
- package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
- package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
- package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
- package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
- package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
- package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
- package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
- package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
- package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/node/url.d.ts +26 -14
- package/node_modules/@types/node/util.d.ts +187 -120
- package/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/node/vm.d.ts +58 -50
- package/node_modules/@types/node/wasi.d.ts +10 -4
- package/node_modules/@types/node/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +225 -0
- package/node_modules/axios/README.md +273 -9
- package/node_modules/axios/dist/axios.js +249 -178
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +213 -193
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +213 -193
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +297 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +20 -11
- package/node_modules/axios/index.d.ts +21 -12
- package/node_modules/axios/lib/adapters/adapters.js +33 -15
- package/node_modules/axios/lib/adapters/http.js +25 -12
- package/node_modules/axios/lib/adapters/xhr.js +17 -10
- package/node_modules/axios/lib/core/mergeConfig.js +1 -0
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +39 -49
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +0 -51
- package/node_modules/axios/lib/platform/common/utils.js +47 -0
- package/node_modules/axios/lib/platform/index.js +5 -1
- package/node_modules/axios/package.json +2 -1
- package/node_modules/call-bind/.eslintrc +0 -1
- package/node_modules/call-bind/.nycrc +0 -4
- package/node_modules/call-bind/CHANGELOG.md +35 -0
- package/node_modules/call-bind/README.md +63 -1
- package/node_modules/call-bind/index.js +10 -13
- package/node_modules/call-bind/package.json +33 -23
- package/node_modules/call-bind/test/callBound.js +0 -1
- package/node_modules/call-bind/test/index.js +18 -4
- package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
- package/node_modules/deep-equal/.eslintrc +6 -0
- package/node_modules/deep-equal/.nycrc +17 -0
- package/node_modules/deep-equal/CHANGELOG.md +204 -4
- package/node_modules/deep-equal/assert.js +3 -0
- package/node_modules/deep-equal/package.json +39 -17
- package/node_modules/deep-equal/readme.markdown +28 -12
- package/node_modules/deep-equal/test/_tape.js +24 -3
- package/node_modules/deep-equal/test/cmp.js +1047 -48
- package/node_modules/define-data-property/CHANGELOG.md +10 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -1
- package/node_modules/define-data-property/index.js +8 -0
- package/node_modules/define-data-property/package.json +11 -9
- package/node_modules/define-data-property/test/index.js +6 -11
- package/node_modules/define-data-property/tsconfig.json +1 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
- package/node_modules/fast-xml-parser/package.json +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
- package/node_modules/follow-redirects/index.js +16 -4
- package/node_modules/follow-redirects/package.json +2 -3
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +11 -11
- package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
- package/node_modules/has-property-descriptors/package.json +13 -6
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.d.ts.map +1 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +49 -0
- package/node_modules/set-function-length/.eslintrc +27 -0
- package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-length/.nycrc +13 -0
- package/node_modules/set-function-length/CHANGELOG.md +41 -0
- package/node_modules/set-function-length/LICENSE +21 -0
- package/node_modules/set-function-length/README.md +56 -0
- package/node_modules/set-function-length/env.js +19 -0
- package/node_modules/set-function-length/index.js +41 -0
- package/node_modules/set-function-length/package.json +84 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +3 -3
- package/tak-ingest.js +39 -24
- package/tak-registration.html +4 -4
- package/tak-registration.js +2 -3
- package/node_modules/define-data-property/tsinit +0 -109
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -48
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
* It is usually not necessary to use the `node:stream` module to consume streams.
|
|
17
17
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/stream.js)
|
|
18
18
|
*/
|
|
19
|
-
declare module
|
|
20
|
-
import {
|
|
21
|
-
import { Blob as NodeBlob } from
|
|
22
|
-
import * as streamPromises from
|
|
23
|
-
import * as streamConsumers from
|
|
24
|
-
import * as streamWeb from
|
|
19
|
+
declare module "stream" {
|
|
20
|
+
import { Abortable, EventEmitter } from "node:events";
|
|
21
|
+
import { Blob as NodeBlob } from "node:buffer";
|
|
22
|
+
import * as streamPromises from "node:stream/promises";
|
|
23
|
+
import * as streamConsumers from "node:stream/consumers";
|
|
24
|
+
import * as streamWeb from "node:stream/web";
|
|
25
25
|
|
|
26
26
|
type ComposeFnParam = (source: any) => void;
|
|
27
27
|
|
|
@@ -30,13 +30,22 @@ declare module 'stream' {
|
|
|
30
30
|
destination: T,
|
|
31
31
|
options?: {
|
|
32
32
|
end?: boolean | undefined;
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
|
+
): T;
|
|
35
|
+
compose<T extends NodeJS.ReadableStream>(
|
|
36
|
+
stream: T | ComposeFnParam | Iterable<T> | AsyncIterable<T>,
|
|
37
|
+
options?: { signal: AbortSignal },
|
|
34
38
|
): T;
|
|
35
|
-
compose<T extends NodeJS.ReadableStream>(stream: T | ComposeFnParam | Iterable<T> | AsyncIterable<T>, options?: { signal: AbortSignal }): T;
|
|
36
39
|
}
|
|
37
40
|
import Stream = internal.Stream;
|
|
38
41
|
import Readable = internal.Readable;
|
|
39
42
|
import ReadableOptions = internal.ReadableOptions;
|
|
43
|
+
interface ArrayOptions {
|
|
44
|
+
/** the maximum concurrent invocations of `fn` to call on the stream at once. **Default: 1**. */
|
|
45
|
+
concurrency?: number;
|
|
46
|
+
/** allows destroying the stream if the signal is aborted. */
|
|
47
|
+
signal?: AbortSignal;
|
|
48
|
+
}
|
|
40
49
|
class ReadableBase extends Stream implements NodeJS.ReadableStream {
|
|
41
50
|
/**
|
|
42
51
|
* A utility method for creating Readable Streams out of iterators.
|
|
@@ -396,6 +405,164 @@ declare module 'stream' {
|
|
|
396
405
|
*/
|
|
397
406
|
wrap(stream: NodeJS.ReadableStream): this;
|
|
398
407
|
push(chunk: any, encoding?: BufferEncoding): boolean;
|
|
408
|
+
/**
|
|
409
|
+
* The iterator created by this method gives users the option to cancel the destruction
|
|
410
|
+
* of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`,
|
|
411
|
+
* or if the iterator should destroy the stream if the stream emitted an error during iteration.
|
|
412
|
+
* @since v16.3.0
|
|
413
|
+
* @param options.destroyOnReturn When set to `false`, calling `return` on the async iterator,
|
|
414
|
+
* or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream.
|
|
415
|
+
* **Default: `true`**.
|
|
416
|
+
*/
|
|
417
|
+
iterator(options?: { destroyOnReturn?: boolean }): AsyncIterableIterator<any>;
|
|
418
|
+
/**
|
|
419
|
+
* This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
|
|
420
|
+
* If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
|
|
421
|
+
* @since v17.4.0, v16.14.0
|
|
422
|
+
* @param fn a function to map over every chunk in the stream. Async or not.
|
|
423
|
+
* @returns a stream mapped with the function *fn*.
|
|
424
|
+
*/
|
|
425
|
+
map(fn: (data: any, options?: Pick<ArrayOptions, "signal">) => any, options?: ArrayOptions): Readable;
|
|
426
|
+
/**
|
|
427
|
+
* This method allows filtering the stream. For each chunk in the stream the *fn* function will be called
|
|
428
|
+
* and if it returns a truthy value, the chunk will be passed to the result stream.
|
|
429
|
+
* If the *fn* function returns a promise - that promise will be `await`ed.
|
|
430
|
+
* @since v17.4.0, v16.14.0
|
|
431
|
+
* @param fn a function to filter chunks from the stream. Async or not.
|
|
432
|
+
* @returns a stream filtered with the predicate *fn*.
|
|
433
|
+
*/
|
|
434
|
+
filter(
|
|
435
|
+
fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
|
|
436
|
+
options?: ArrayOptions,
|
|
437
|
+
): Readable;
|
|
438
|
+
/**
|
|
439
|
+
* This method allows iterating a stream. For each chunk in the stream the *fn* function will be called.
|
|
440
|
+
* If the *fn* function returns a promise - that promise will be `await`ed.
|
|
441
|
+
*
|
|
442
|
+
* This method is different from `for await...of` loops in that it can optionally process chunks concurrently.
|
|
443
|
+
* In addition, a `forEach` iteration can only be stopped by having passed a `signal` option
|
|
444
|
+
* and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`.
|
|
445
|
+
* In either case the stream will be destroyed.
|
|
446
|
+
*
|
|
447
|
+
* This method is different from listening to the `'data'` event in that it uses the `readable` event
|
|
448
|
+
* in the underlying machinary and can limit the number of concurrent *fn* calls.
|
|
449
|
+
* @since v17.5.0
|
|
450
|
+
* @param fn a function to call on each chunk of the stream. Async or not.
|
|
451
|
+
* @returns a promise for when the stream has finished.
|
|
452
|
+
*/
|
|
453
|
+
forEach(
|
|
454
|
+
fn: (data: any, options?: Pick<ArrayOptions, "signal">) => void | Promise<void>,
|
|
455
|
+
options?: ArrayOptions,
|
|
456
|
+
): Promise<void>;
|
|
457
|
+
/**
|
|
458
|
+
* This method allows easily obtaining the contents of a stream.
|
|
459
|
+
*
|
|
460
|
+
* As this method reads the entire stream into memory, it negates the benefits of streams. It's intended
|
|
461
|
+
* for interoperability and convenience, not as the primary way to consume streams.
|
|
462
|
+
* @since v17.5.0
|
|
463
|
+
* @returns a promise containing an array with the contents of the stream.
|
|
464
|
+
*/
|
|
465
|
+
toArray(options?: Pick<ArrayOptions, "signal">): Promise<any[]>;
|
|
466
|
+
/**
|
|
467
|
+
* This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream
|
|
468
|
+
* until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk
|
|
469
|
+
* `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`.
|
|
470
|
+
* If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`.
|
|
471
|
+
* @since v17.5.0
|
|
472
|
+
* @param fn a function to call on each chunk of the stream. Async or not.
|
|
473
|
+
* @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks.
|
|
474
|
+
*/
|
|
475
|
+
some(
|
|
476
|
+
fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
|
|
477
|
+
options?: ArrayOptions,
|
|
478
|
+
): Promise<boolean>;
|
|
479
|
+
/**
|
|
480
|
+
* This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream
|
|
481
|
+
* to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy,
|
|
482
|
+
* the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value.
|
|
483
|
+
* If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`.
|
|
484
|
+
* @since v17.5.0
|
|
485
|
+
* @param fn a function to call on each chunk of the stream. Async or not.
|
|
486
|
+
* @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value,
|
|
487
|
+
* or `undefined` if no element was found.
|
|
488
|
+
*/
|
|
489
|
+
find<T>(
|
|
490
|
+
fn: (data: any, options?: Pick<ArrayOptions, "signal">) => data is T,
|
|
491
|
+
options?: ArrayOptions,
|
|
492
|
+
): Promise<T | undefined>;
|
|
493
|
+
find(
|
|
494
|
+
fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
|
|
495
|
+
options?: ArrayOptions,
|
|
496
|
+
): Promise<any>;
|
|
497
|
+
/**
|
|
498
|
+
* This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream
|
|
499
|
+
* to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk
|
|
500
|
+
* `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`.
|
|
501
|
+
* If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`.
|
|
502
|
+
* @since v17.5.0
|
|
503
|
+
* @param fn a function to call on each chunk of the stream. Async or not.
|
|
504
|
+
* @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks.
|
|
505
|
+
*/
|
|
506
|
+
every(
|
|
507
|
+
fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
|
|
508
|
+
options?: ArrayOptions,
|
|
509
|
+
): Promise<boolean>;
|
|
510
|
+
/**
|
|
511
|
+
* This method returns a new stream by applying the given callback to each chunk of the stream
|
|
512
|
+
* and then flattening the result.
|
|
513
|
+
*
|
|
514
|
+
* It is possible to return a stream or another iterable or async iterable from *fn* and the result streams
|
|
515
|
+
* will be merged (flattened) into the returned stream.
|
|
516
|
+
* @since v17.5.0
|
|
517
|
+
* @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator.
|
|
518
|
+
* @returns a stream flat-mapped with the function *fn*.
|
|
519
|
+
*/
|
|
520
|
+
flatMap(fn: (data: any, options?: Pick<ArrayOptions, "signal">) => any, options?: ArrayOptions): Readable;
|
|
521
|
+
/**
|
|
522
|
+
* This method returns a new stream with the first *limit* chunks dropped from the start.
|
|
523
|
+
* @since v17.5.0
|
|
524
|
+
* @param limit the number of chunks to drop from the readable.
|
|
525
|
+
* @returns a stream with *limit* chunks dropped from the start.
|
|
526
|
+
*/
|
|
527
|
+
drop(limit: number, options?: Pick<ArrayOptions, "signal">): Readable;
|
|
528
|
+
/**
|
|
529
|
+
* This method returns a new stream with the first *limit* chunks.
|
|
530
|
+
* @since v17.5.0
|
|
531
|
+
* @param limit the number of chunks to take from the readable.
|
|
532
|
+
* @returns a stream with *limit* chunks taken.
|
|
533
|
+
*/
|
|
534
|
+
take(limit: number, options?: Pick<ArrayOptions, "signal">): Readable;
|
|
535
|
+
/**
|
|
536
|
+
* This method returns a new stream with chunks of the underlying stream paired with a counter
|
|
537
|
+
* in the form `[index, chunk]`. The first index value is `0` and it increases by 1 for each chunk produced.
|
|
538
|
+
* @since v17.5.0
|
|
539
|
+
* @returns a stream of indexed pairs.
|
|
540
|
+
*/
|
|
541
|
+
asIndexedPairs(options?: Pick<ArrayOptions, "signal">): Readable;
|
|
542
|
+
/**
|
|
543
|
+
* This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation
|
|
544
|
+
* on the previous element. It returns a promise for the final value of the reduction.
|
|
545
|
+
*
|
|
546
|
+
* If no *initial* value is supplied the first chunk of the stream is used as the initial value.
|
|
547
|
+
* If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property.
|
|
548
|
+
*
|
|
549
|
+
* The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter
|
|
550
|
+
* or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method.
|
|
551
|
+
* @since v17.5.0
|
|
552
|
+
* @param fn a reducer function to call over every chunk in the stream. Async or not.
|
|
553
|
+
* @param initial the initial value to use in the reduction.
|
|
554
|
+
* @returns a promise for the final value of the reduction.
|
|
555
|
+
*/
|
|
556
|
+
reduce<T = any>(
|
|
557
|
+
fn: (previous: any, data: any, options?: Pick<ArrayOptions, "signal">) => T,
|
|
558
|
+
initial?: undefined,
|
|
559
|
+
options?: Pick<ArrayOptions, "signal">,
|
|
560
|
+
): Promise<T>;
|
|
561
|
+
reduce<T = any>(
|
|
562
|
+
fn: (previous: T, data: any, options?: Pick<ArrayOptions, "signal">) => T,
|
|
563
|
+
initial: T,
|
|
564
|
+
options?: Pick<ArrayOptions, "signal">,
|
|
565
|
+
): Promise<T>;
|
|
399
566
|
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
400
567
|
/**
|
|
401
568
|
* Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the readable
|
|
@@ -420,61 +587,61 @@ declare module 'stream' {
|
|
|
420
587
|
* 6. readable
|
|
421
588
|
* 7. resume
|
|
422
589
|
*/
|
|
423
|
-
addListener(event:
|
|
424
|
-
addListener(event:
|
|
425
|
-
addListener(event:
|
|
426
|
-
addListener(event:
|
|
427
|
-
addListener(event:
|
|
428
|
-
addListener(event:
|
|
429
|
-
addListener(event:
|
|
590
|
+
addListener(event: "close", listener: () => void): this;
|
|
591
|
+
addListener(event: "data", listener: (chunk: any) => void): this;
|
|
592
|
+
addListener(event: "end", listener: () => void): this;
|
|
593
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
594
|
+
addListener(event: "pause", listener: () => void): this;
|
|
595
|
+
addListener(event: "readable", listener: () => void): this;
|
|
596
|
+
addListener(event: "resume", listener: () => void): this;
|
|
430
597
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
431
|
-
emit(event:
|
|
432
|
-
emit(event:
|
|
433
|
-
emit(event:
|
|
434
|
-
emit(event:
|
|
435
|
-
emit(event:
|
|
436
|
-
emit(event:
|
|
437
|
-
emit(event:
|
|
598
|
+
emit(event: "close"): boolean;
|
|
599
|
+
emit(event: "data", chunk: any): boolean;
|
|
600
|
+
emit(event: "end"): boolean;
|
|
601
|
+
emit(event: "error", err: Error): boolean;
|
|
602
|
+
emit(event: "pause"): boolean;
|
|
603
|
+
emit(event: "readable"): boolean;
|
|
604
|
+
emit(event: "resume"): boolean;
|
|
438
605
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
439
|
-
on(event:
|
|
440
|
-
on(event:
|
|
441
|
-
on(event:
|
|
442
|
-
on(event:
|
|
443
|
-
on(event:
|
|
444
|
-
on(event:
|
|
445
|
-
on(event:
|
|
606
|
+
on(event: "close", listener: () => void): this;
|
|
607
|
+
on(event: "data", listener: (chunk: any) => void): this;
|
|
608
|
+
on(event: "end", listener: () => void): this;
|
|
609
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
610
|
+
on(event: "pause", listener: () => void): this;
|
|
611
|
+
on(event: "readable", listener: () => void): this;
|
|
612
|
+
on(event: "resume", listener: () => void): this;
|
|
446
613
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
447
|
-
once(event:
|
|
448
|
-
once(event:
|
|
449
|
-
once(event:
|
|
450
|
-
once(event:
|
|
451
|
-
once(event:
|
|
452
|
-
once(event:
|
|
453
|
-
once(event:
|
|
614
|
+
once(event: "close", listener: () => void): this;
|
|
615
|
+
once(event: "data", listener: (chunk: any) => void): this;
|
|
616
|
+
once(event: "end", listener: () => void): this;
|
|
617
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
618
|
+
once(event: "pause", listener: () => void): this;
|
|
619
|
+
once(event: "readable", listener: () => void): this;
|
|
620
|
+
once(event: "resume", listener: () => void): this;
|
|
454
621
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
455
|
-
prependListener(event:
|
|
456
|
-
prependListener(event:
|
|
457
|
-
prependListener(event:
|
|
458
|
-
prependListener(event:
|
|
459
|
-
prependListener(event:
|
|
460
|
-
prependListener(event:
|
|
461
|
-
prependListener(event:
|
|
622
|
+
prependListener(event: "close", listener: () => void): this;
|
|
623
|
+
prependListener(event: "data", listener: (chunk: any) => void): this;
|
|
624
|
+
prependListener(event: "end", listener: () => void): this;
|
|
625
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
626
|
+
prependListener(event: "pause", listener: () => void): this;
|
|
627
|
+
prependListener(event: "readable", listener: () => void): this;
|
|
628
|
+
prependListener(event: "resume", listener: () => void): this;
|
|
462
629
|
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
463
|
-
prependOnceListener(event:
|
|
464
|
-
prependOnceListener(event:
|
|
465
|
-
prependOnceListener(event:
|
|
466
|
-
prependOnceListener(event:
|
|
467
|
-
prependOnceListener(event:
|
|
468
|
-
prependOnceListener(event:
|
|
469
|
-
prependOnceListener(event:
|
|
630
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
631
|
+
prependOnceListener(event: "data", listener: (chunk: any) => void): this;
|
|
632
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
633
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
634
|
+
prependOnceListener(event: "pause", listener: () => void): this;
|
|
635
|
+
prependOnceListener(event: "readable", listener: () => void): this;
|
|
636
|
+
prependOnceListener(event: "resume", listener: () => void): this;
|
|
470
637
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
471
|
-
removeListener(event:
|
|
472
|
-
removeListener(event:
|
|
473
|
-
removeListener(event:
|
|
474
|
-
removeListener(event:
|
|
475
|
-
removeListener(event:
|
|
476
|
-
removeListener(event:
|
|
477
|
-
removeListener(event:
|
|
638
|
+
removeListener(event: "close", listener: () => void): this;
|
|
639
|
+
removeListener(event: "data", listener: (chunk: any) => void): this;
|
|
640
|
+
removeListener(event: "end", listener: () => void): this;
|
|
641
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
642
|
+
removeListener(event: "pause", listener: () => void): this;
|
|
643
|
+
removeListener(event: "readable", listener: () => void): this;
|
|
644
|
+
removeListener(event: "resume", listener: () => void): this;
|
|
478
645
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
479
646
|
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
|
480
647
|
/**
|
|
@@ -552,7 +719,7 @@ declare module 'stream' {
|
|
|
552
719
|
chunk: any;
|
|
553
720
|
encoding: BufferEncoding;
|
|
554
721
|
}>,
|
|
555
|
-
callback: (error?: Error | null) => void
|
|
722
|
+
callback: (error?: Error | null) => void,
|
|
556
723
|
): void;
|
|
557
724
|
_construct?(callback: (error?: Error | null) => void): void;
|
|
558
725
|
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
@@ -722,54 +889,54 @@ declare module 'stream' {
|
|
|
722
889
|
* 5. pipe
|
|
723
890
|
* 6. unpipe
|
|
724
891
|
*/
|
|
725
|
-
addListener(event:
|
|
726
|
-
addListener(event:
|
|
727
|
-
addListener(event:
|
|
728
|
-
addListener(event:
|
|
729
|
-
addListener(event:
|
|
730
|
-
addListener(event:
|
|
892
|
+
addListener(event: "close", listener: () => void): this;
|
|
893
|
+
addListener(event: "drain", listener: () => void): this;
|
|
894
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
895
|
+
addListener(event: "finish", listener: () => void): this;
|
|
896
|
+
addListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
897
|
+
addListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
731
898
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
732
|
-
emit(event:
|
|
733
|
-
emit(event:
|
|
734
|
-
emit(event:
|
|
735
|
-
emit(event:
|
|
736
|
-
emit(event:
|
|
737
|
-
emit(event:
|
|
899
|
+
emit(event: "close"): boolean;
|
|
900
|
+
emit(event: "drain"): boolean;
|
|
901
|
+
emit(event: "error", err: Error): boolean;
|
|
902
|
+
emit(event: "finish"): boolean;
|
|
903
|
+
emit(event: "pipe", src: Readable): boolean;
|
|
904
|
+
emit(event: "unpipe", src: Readable): boolean;
|
|
738
905
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
739
|
-
on(event:
|
|
740
|
-
on(event:
|
|
741
|
-
on(event:
|
|
742
|
-
on(event:
|
|
743
|
-
on(event:
|
|
744
|
-
on(event:
|
|
906
|
+
on(event: "close", listener: () => void): this;
|
|
907
|
+
on(event: "drain", listener: () => void): this;
|
|
908
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
909
|
+
on(event: "finish", listener: () => void): this;
|
|
910
|
+
on(event: "pipe", listener: (src: Readable) => void): this;
|
|
911
|
+
on(event: "unpipe", listener: (src: Readable) => void): this;
|
|
745
912
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
746
|
-
once(event:
|
|
747
|
-
once(event:
|
|
748
|
-
once(event:
|
|
749
|
-
once(event:
|
|
750
|
-
once(event:
|
|
751
|
-
once(event:
|
|
913
|
+
once(event: "close", listener: () => void): this;
|
|
914
|
+
once(event: "drain", listener: () => void): this;
|
|
915
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
916
|
+
once(event: "finish", listener: () => void): this;
|
|
917
|
+
once(event: "pipe", listener: (src: Readable) => void): this;
|
|
918
|
+
once(event: "unpipe", listener: (src: Readable) => void): this;
|
|
752
919
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
753
|
-
prependListener(event:
|
|
754
|
-
prependListener(event:
|
|
755
|
-
prependListener(event:
|
|
756
|
-
prependListener(event:
|
|
757
|
-
prependListener(event:
|
|
758
|
-
prependListener(event:
|
|
920
|
+
prependListener(event: "close", listener: () => void): this;
|
|
921
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
922
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
923
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
924
|
+
prependListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
925
|
+
prependListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
759
926
|
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
760
|
-
prependOnceListener(event:
|
|
761
|
-
prependOnceListener(event:
|
|
762
|
-
prependOnceListener(event:
|
|
763
|
-
prependOnceListener(event:
|
|
764
|
-
prependOnceListener(event:
|
|
765
|
-
prependOnceListener(event:
|
|
927
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
928
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
929
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
930
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
931
|
+
prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
932
|
+
prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
766
933
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
767
|
-
removeListener(event:
|
|
768
|
-
removeListener(event:
|
|
769
|
-
removeListener(event:
|
|
770
|
-
removeListener(event:
|
|
771
|
-
removeListener(event:
|
|
772
|
-
removeListener(event:
|
|
934
|
+
removeListener(event: "close", listener: () => void): this;
|
|
935
|
+
removeListener(event: "drain", listener: () => void): this;
|
|
936
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
937
|
+
removeListener(event: "finish", listener: () => void): this;
|
|
938
|
+
removeListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
939
|
+
removeListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
773
940
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
774
941
|
}
|
|
775
942
|
namespace internal {
|
|
@@ -781,7 +948,7 @@ declare module 'stream' {
|
|
|
781
948
|
highWaterMark?: number | undefined;
|
|
782
949
|
objectMode?: boolean | undefined;
|
|
783
950
|
construct?(this: T, callback: (error?: Error | null) => void): void;
|
|
784
|
-
destroy?(this: T, error: Error | null, callback: (error
|
|
951
|
+
destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
|
|
785
952
|
autoDestroy?: boolean | undefined;
|
|
786
953
|
}
|
|
787
954
|
interface ReadableOptions extends StreamOptions<Readable> {
|
|
@@ -797,7 +964,10 @@ declare module 'stream' {
|
|
|
797
964
|
* @since v17.0.0
|
|
798
965
|
* @experimental
|
|
799
966
|
*/
|
|
800
|
-
static fromWeb(
|
|
967
|
+
static fromWeb(
|
|
968
|
+
readableStream: streamWeb.ReadableStream,
|
|
969
|
+
options?: Pick<ReadableOptions, "encoding" | "highWaterMark" | "objectMode" | "signal">,
|
|
970
|
+
): Readable;
|
|
801
971
|
/**
|
|
802
972
|
* A utility method for creating a web `ReadableStream` from a `Readable`.
|
|
803
973
|
* @since v17.0.0
|
|
@@ -808,14 +978,19 @@ declare module 'stream' {
|
|
|
808
978
|
interface WritableOptions extends StreamOptions<Writable> {
|
|
809
979
|
decodeStrings?: boolean | undefined;
|
|
810
980
|
defaultEncoding?: BufferEncoding | undefined;
|
|
811
|
-
write?(
|
|
981
|
+
write?(
|
|
982
|
+
this: Writable,
|
|
983
|
+
chunk: any,
|
|
984
|
+
encoding: BufferEncoding,
|
|
985
|
+
callback: (error?: Error | null) => void,
|
|
986
|
+
): void;
|
|
812
987
|
writev?(
|
|
813
988
|
this: Writable,
|
|
814
989
|
chunks: Array<{
|
|
815
990
|
chunk: any;
|
|
816
991
|
encoding: BufferEncoding;
|
|
817
992
|
}>,
|
|
818
|
-
callback: (error?: Error | null) => void
|
|
993
|
+
callback: (error?: Error | null) => void,
|
|
819
994
|
): void;
|
|
820
995
|
final?(this: Writable, callback: (error?: Error | null) => void): void;
|
|
821
996
|
}
|
|
@@ -828,7 +1003,10 @@ declare module 'stream' {
|
|
|
828
1003
|
* @since v17.0.0
|
|
829
1004
|
* @experimental
|
|
830
1005
|
*/
|
|
831
|
-
static fromWeb(
|
|
1006
|
+
static fromWeb(
|
|
1007
|
+
writableStream: streamWeb.WritableStream,
|
|
1008
|
+
options?: Pick<WritableOptions, "decodeStrings" | "highWaterMark" | "objectMode" | "signal">,
|
|
1009
|
+
): Writable;
|
|
832
1010
|
/**
|
|
833
1011
|
* A utility method for creating a web `WritableStream` from a `Writable`.
|
|
834
1012
|
* @since v17.0.0
|
|
@@ -852,10 +1030,10 @@ declare module 'stream' {
|
|
|
852
1030
|
chunk: any;
|
|
853
1031
|
encoding: BufferEncoding;
|
|
854
1032
|
}>,
|
|
855
|
-
callback: (error?: Error | null) => void
|
|
1033
|
+
callback: (error?: Error | null) => void,
|
|
856
1034
|
): void;
|
|
857
1035
|
final?(this: Duplex, callback: (error?: Error | null) => void): void;
|
|
858
|
-
destroy?(this: Duplex, error: Error | null, callback: (error
|
|
1036
|
+
destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
|
|
859
1037
|
}
|
|
860
1038
|
/**
|
|
861
1039
|
* Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
|
|
@@ -910,16 +1088,27 @@ declare module 'stream' {
|
|
|
910
1088
|
*
|
|
911
1089
|
* @since v16.8.0
|
|
912
1090
|
*/
|
|
913
|
-
static from(
|
|
1091
|
+
static from(
|
|
1092
|
+
src:
|
|
1093
|
+
| Stream
|
|
1094
|
+
| NodeBlob
|
|
1095
|
+
| ArrayBuffer
|
|
1096
|
+
| string
|
|
1097
|
+
| Iterable<any>
|
|
1098
|
+
| AsyncIterable<any>
|
|
1099
|
+
| AsyncGeneratorFunction
|
|
1100
|
+
| Promise<any>
|
|
1101
|
+
| Object,
|
|
1102
|
+
): Duplex;
|
|
914
1103
|
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
915
1104
|
_writev?(
|
|
916
1105
|
chunks: Array<{
|
|
917
1106
|
chunk: any;
|
|
918
1107
|
encoding: BufferEncoding;
|
|
919
1108
|
}>,
|
|
920
|
-
callback: (error?: Error | null) => void
|
|
1109
|
+
callback: (error?: Error | null) => void,
|
|
921
1110
|
): void;
|
|
922
|
-
_destroy(error: Error | null, callback: (error
|
|
1111
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
923
1112
|
_final(callback: (error?: Error | null) => void): void;
|
|
924
1113
|
write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
925
1114
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
@@ -948,7 +1137,10 @@ declare module 'stream' {
|
|
|
948
1137
|
readable: streamWeb.ReadableStream;
|
|
949
1138
|
writable: streamWeb.WritableStream;
|
|
950
1139
|
},
|
|
951
|
-
options?: Pick<
|
|
1140
|
+
options?: Pick<
|
|
1141
|
+
DuplexOptions,
|
|
1142
|
+
"allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal"
|
|
1143
|
+
>,
|
|
952
1144
|
): Duplex;
|
|
953
1145
|
/**
|
|
954
1146
|
* Event emitter
|
|
@@ -965,106 +1157,111 @@ declare module 'stream' {
|
|
|
965
1157
|
* 10. resume
|
|
966
1158
|
* 11. unpipe
|
|
967
1159
|
*/
|
|
968
|
-
addListener(event:
|
|
969
|
-
addListener(event:
|
|
970
|
-
addListener(event:
|
|
971
|
-
addListener(event:
|
|
972
|
-
addListener(event:
|
|
973
|
-
addListener(event:
|
|
974
|
-
addListener(event:
|
|
975
|
-
addListener(event:
|
|
976
|
-
addListener(event:
|
|
977
|
-
addListener(event:
|
|
978
|
-
addListener(event:
|
|
1160
|
+
addListener(event: "close", listener: () => void): this;
|
|
1161
|
+
addListener(event: "data", listener: (chunk: any) => void): this;
|
|
1162
|
+
addListener(event: "drain", listener: () => void): this;
|
|
1163
|
+
addListener(event: "end", listener: () => void): this;
|
|
1164
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
1165
|
+
addListener(event: "finish", listener: () => void): this;
|
|
1166
|
+
addListener(event: "pause", listener: () => void): this;
|
|
1167
|
+
addListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
1168
|
+
addListener(event: "readable", listener: () => void): this;
|
|
1169
|
+
addListener(event: "resume", listener: () => void): this;
|
|
1170
|
+
addListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
979
1171
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
980
|
-
emit(event:
|
|
981
|
-
emit(event:
|
|
982
|
-
emit(event:
|
|
983
|
-
emit(event:
|
|
984
|
-
emit(event:
|
|
985
|
-
emit(event:
|
|
986
|
-
emit(event:
|
|
987
|
-
emit(event:
|
|
988
|
-
emit(event:
|
|
989
|
-
emit(event:
|
|
990
|
-
emit(event:
|
|
1172
|
+
emit(event: "close"): boolean;
|
|
1173
|
+
emit(event: "data", chunk: any): boolean;
|
|
1174
|
+
emit(event: "drain"): boolean;
|
|
1175
|
+
emit(event: "end"): boolean;
|
|
1176
|
+
emit(event: "error", err: Error): boolean;
|
|
1177
|
+
emit(event: "finish"): boolean;
|
|
1178
|
+
emit(event: "pause"): boolean;
|
|
1179
|
+
emit(event: "pipe", src: Readable): boolean;
|
|
1180
|
+
emit(event: "readable"): boolean;
|
|
1181
|
+
emit(event: "resume"): boolean;
|
|
1182
|
+
emit(event: "unpipe", src: Readable): boolean;
|
|
991
1183
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
992
|
-
on(event:
|
|
993
|
-
on(event:
|
|
994
|
-
on(event:
|
|
995
|
-
on(event:
|
|
996
|
-
on(event:
|
|
997
|
-
on(event:
|
|
998
|
-
on(event:
|
|
999
|
-
on(event:
|
|
1000
|
-
on(event:
|
|
1001
|
-
on(event:
|
|
1002
|
-
on(event:
|
|
1184
|
+
on(event: "close", listener: () => void): this;
|
|
1185
|
+
on(event: "data", listener: (chunk: any) => void): this;
|
|
1186
|
+
on(event: "drain", listener: () => void): this;
|
|
1187
|
+
on(event: "end", listener: () => void): this;
|
|
1188
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
1189
|
+
on(event: "finish", listener: () => void): this;
|
|
1190
|
+
on(event: "pause", listener: () => void): this;
|
|
1191
|
+
on(event: "pipe", listener: (src: Readable) => void): this;
|
|
1192
|
+
on(event: "readable", listener: () => void): this;
|
|
1193
|
+
on(event: "resume", listener: () => void): this;
|
|
1194
|
+
on(event: "unpipe", listener: (src: Readable) => void): this;
|
|
1003
1195
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1004
|
-
once(event:
|
|
1005
|
-
once(event:
|
|
1006
|
-
once(event:
|
|
1007
|
-
once(event:
|
|
1008
|
-
once(event:
|
|
1009
|
-
once(event:
|
|
1010
|
-
once(event:
|
|
1011
|
-
once(event:
|
|
1012
|
-
once(event:
|
|
1013
|
-
once(event:
|
|
1014
|
-
once(event:
|
|
1196
|
+
once(event: "close", listener: () => void): this;
|
|
1197
|
+
once(event: "data", listener: (chunk: any) => void): this;
|
|
1198
|
+
once(event: "drain", listener: () => void): this;
|
|
1199
|
+
once(event: "end", listener: () => void): this;
|
|
1200
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
1201
|
+
once(event: "finish", listener: () => void): this;
|
|
1202
|
+
once(event: "pause", listener: () => void): this;
|
|
1203
|
+
once(event: "pipe", listener: (src: Readable) => void): this;
|
|
1204
|
+
once(event: "readable", listener: () => void): this;
|
|
1205
|
+
once(event: "resume", listener: () => void): this;
|
|
1206
|
+
once(event: "unpipe", listener: (src: Readable) => void): this;
|
|
1015
1207
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1016
|
-
prependListener(event:
|
|
1017
|
-
prependListener(event:
|
|
1018
|
-
prependListener(event:
|
|
1019
|
-
prependListener(event:
|
|
1020
|
-
prependListener(event:
|
|
1021
|
-
prependListener(event:
|
|
1022
|
-
prependListener(event:
|
|
1023
|
-
prependListener(event:
|
|
1024
|
-
prependListener(event:
|
|
1025
|
-
prependListener(event:
|
|
1026
|
-
prependListener(event:
|
|
1208
|
+
prependListener(event: "close", listener: () => void): this;
|
|
1209
|
+
prependListener(event: "data", listener: (chunk: any) => void): this;
|
|
1210
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
1211
|
+
prependListener(event: "end", listener: () => void): this;
|
|
1212
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
1213
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
1214
|
+
prependListener(event: "pause", listener: () => void): this;
|
|
1215
|
+
prependListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
1216
|
+
prependListener(event: "readable", listener: () => void): this;
|
|
1217
|
+
prependListener(event: "resume", listener: () => void): this;
|
|
1218
|
+
prependListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
1027
1219
|
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1028
|
-
prependOnceListener(event:
|
|
1029
|
-
prependOnceListener(event:
|
|
1030
|
-
prependOnceListener(event:
|
|
1031
|
-
prependOnceListener(event:
|
|
1032
|
-
prependOnceListener(event:
|
|
1033
|
-
prependOnceListener(event:
|
|
1034
|
-
prependOnceListener(event:
|
|
1035
|
-
prependOnceListener(event:
|
|
1036
|
-
prependOnceListener(event:
|
|
1037
|
-
prependOnceListener(event:
|
|
1038
|
-
prependOnceListener(event:
|
|
1220
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
1221
|
+
prependOnceListener(event: "data", listener: (chunk: any) => void): this;
|
|
1222
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
1223
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
1224
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
1225
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
1226
|
+
prependOnceListener(event: "pause", listener: () => void): this;
|
|
1227
|
+
prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
1228
|
+
prependOnceListener(event: "readable", listener: () => void): this;
|
|
1229
|
+
prependOnceListener(event: "resume", listener: () => void): this;
|
|
1230
|
+
prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
1039
1231
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1040
|
-
removeListener(event:
|
|
1041
|
-
removeListener(event:
|
|
1042
|
-
removeListener(event:
|
|
1043
|
-
removeListener(event:
|
|
1044
|
-
removeListener(event:
|
|
1045
|
-
removeListener(event:
|
|
1046
|
-
removeListener(event:
|
|
1047
|
-
removeListener(event:
|
|
1048
|
-
removeListener(event:
|
|
1049
|
-
removeListener(event:
|
|
1050
|
-
removeListener(event:
|
|
1232
|
+
removeListener(event: "close", listener: () => void): this;
|
|
1233
|
+
removeListener(event: "data", listener: (chunk: any) => void): this;
|
|
1234
|
+
removeListener(event: "drain", listener: () => void): this;
|
|
1235
|
+
removeListener(event: "end", listener: () => void): this;
|
|
1236
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
1237
|
+
removeListener(event: "finish", listener: () => void): this;
|
|
1238
|
+
removeListener(event: "pause", listener: () => void): this;
|
|
1239
|
+
removeListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
1240
|
+
removeListener(event: "readable", listener: () => void): this;
|
|
1241
|
+
removeListener(event: "resume", listener: () => void): this;
|
|
1242
|
+
removeListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
1051
1243
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1052
1244
|
}
|
|
1053
1245
|
type TransformCallback = (error?: Error | null, data?: any) => void;
|
|
1054
1246
|
interface TransformOptions extends DuplexOptions {
|
|
1055
1247
|
construct?(this: Transform, callback: (error?: Error | null) => void): void;
|
|
1056
1248
|
read?(this: Transform, size: number): void;
|
|
1057
|
-
write?(
|
|
1249
|
+
write?(
|
|
1250
|
+
this: Transform,
|
|
1251
|
+
chunk: any,
|
|
1252
|
+
encoding: BufferEncoding,
|
|
1253
|
+
callback: (error?: Error | null) => void,
|
|
1254
|
+
): void;
|
|
1058
1255
|
writev?(
|
|
1059
1256
|
this: Transform,
|
|
1060
1257
|
chunks: Array<{
|
|
1061
1258
|
chunk: any;
|
|
1062
1259
|
encoding: BufferEncoding;
|
|
1063
1260
|
}>,
|
|
1064
|
-
callback: (error?: Error | null) => void
|
|
1261
|
+
callback: (error?: Error | null) => void,
|
|
1065
1262
|
): void;
|
|
1066
1263
|
final?(this: Transform, callback: (error?: Error | null) => void): void;
|
|
1067
|
-
destroy?(this: Transform, error: Error | null, callback: (error
|
|
1264
|
+
destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
|
|
1068
1265
|
transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
|
|
1069
1266
|
flush?(this: Transform, callback: TransformCallback): void;
|
|
1070
1267
|
}
|
|
@@ -1233,26 +1430,43 @@ declare module 'stream' {
|
|
|
1233
1430
|
* @param callback A callback function that takes an optional error argument.
|
|
1234
1431
|
* @return A cleanup function which removes all registered listeners.
|
|
1235
1432
|
*/
|
|
1236
|
-
function finished(
|
|
1237
|
-
|
|
1433
|
+
function finished(
|
|
1434
|
+
stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
|
|
1435
|
+
options: FinishedOptions,
|
|
1436
|
+
callback: (err?: NodeJS.ErrnoException | null) => void,
|
|
1437
|
+
): () => void;
|
|
1438
|
+
function finished(
|
|
1439
|
+
stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
|
|
1440
|
+
callback: (err?: NodeJS.ErrnoException | null) => void,
|
|
1441
|
+
): () => void;
|
|
1238
1442
|
namespace finished {
|
|
1239
|
-
function __promisify__(
|
|
1443
|
+
function __promisify__(
|
|
1444
|
+
stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
|
|
1445
|
+
options?: FinishedOptions,
|
|
1446
|
+
): Promise<void>;
|
|
1240
1447
|
}
|
|
1241
1448
|
type PipelineSourceFunction<T> = () => Iterable<T> | AsyncIterable<T>;
|
|
1242
1449
|
type PipelineSource<T> = Iterable<T> | AsyncIterable<T> | NodeJS.ReadableStream | PipelineSourceFunction<T>;
|
|
1243
1450
|
type PipelineTransform<S extends PipelineTransformSource<any>, U> =
|
|
1244
1451
|
| NodeJS.ReadWriteStream
|
|
1245
|
-
| ((
|
|
1452
|
+
| ((
|
|
1453
|
+
source: S extends (...args: any[]) => Iterable<infer ST> | AsyncIterable<infer ST> ? AsyncIterable<ST>
|
|
1454
|
+
: S,
|
|
1455
|
+
) => AsyncIterable<U>);
|
|
1246
1456
|
type PipelineTransformSource<T> = PipelineSource<T> | PipelineTransform<any, T>;
|
|
1247
1457
|
type PipelineDestinationIterableFunction<T> = (source: AsyncIterable<T>) => AsyncIterable<any>;
|
|
1248
1458
|
type PipelineDestinationPromiseFunction<T, P> = (source: AsyncIterable<T>) => Promise<P>;
|
|
1249
|
-
type PipelineDestination<S extends PipelineTransformSource<any>, P> = S extends
|
|
1250
|
-
|
|
1459
|
+
type PipelineDestination<S extends PipelineTransformSource<any>, P> = S extends
|
|
1460
|
+
PipelineTransformSource<infer ST> ?
|
|
1461
|
+
| NodeJS.WritableStream
|
|
1462
|
+
| PipelineDestinationIterableFunction<ST>
|
|
1463
|
+
| PipelineDestinationPromiseFunction<ST, P>
|
|
1251
1464
|
: never;
|
|
1252
|
-
type PipelineCallback<S extends PipelineDestination<any, any>> = S extends
|
|
1253
|
-
? (err: NodeJS.ErrnoException | null, value: P) => void
|
|
1465
|
+
type PipelineCallback<S extends PipelineDestination<any, any>> = S extends
|
|
1466
|
+
PipelineDestinationPromiseFunction<any, infer P> ? (err: NodeJS.ErrnoException | null, value: P) => void
|
|
1254
1467
|
: (err: NodeJS.ErrnoException | null) => void;
|
|
1255
|
-
type PipelinePromise<S extends PipelineDestination<any, any>> = S extends
|
|
1468
|
+
type PipelinePromise<S extends PipelineDestination<any, any>> = S extends
|
|
1469
|
+
PipelineDestinationPromiseFunction<any, infer P> ? Promise<P> : Promise<void>;
|
|
1256
1470
|
interface PipelineOptions {
|
|
1257
1471
|
signal?: AbortSignal | undefined;
|
|
1258
1472
|
end?: boolean | undefined;
|
|
@@ -1325,76 +1539,133 @@ declare module 'stream' {
|
|
|
1325
1539
|
function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
|
|
1326
1540
|
source: A,
|
|
1327
1541
|
destination: B,
|
|
1328
|
-
callback?: PipelineCallback<B
|
|
1542
|
+
callback?: PipelineCallback<B>,
|
|
1329
1543
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1330
|
-
function pipeline<
|
|
1544
|
+
function pipeline<
|
|
1545
|
+
A extends PipelineSource<any>,
|
|
1546
|
+
T1 extends PipelineTransform<A, any>,
|
|
1547
|
+
B extends PipelineDestination<T1, any>,
|
|
1548
|
+
>(
|
|
1331
1549
|
source: A,
|
|
1332
1550
|
transform1: T1,
|
|
1333
1551
|
destination: B,
|
|
1334
|
-
callback?: PipelineCallback<B
|
|
1552
|
+
callback?: PipelineCallback<B>,
|
|
1335
1553
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1336
|
-
function pipeline<
|
|
1554
|
+
function pipeline<
|
|
1555
|
+
A extends PipelineSource<any>,
|
|
1556
|
+
T1 extends PipelineTransform<A, any>,
|
|
1557
|
+
T2 extends PipelineTransform<T1, any>,
|
|
1558
|
+
B extends PipelineDestination<T2, any>,
|
|
1559
|
+
>(
|
|
1337
1560
|
source: A,
|
|
1338
1561
|
transform1: T1,
|
|
1339
1562
|
transform2: T2,
|
|
1340
1563
|
destination: B,
|
|
1341
|
-
callback?: PipelineCallback<B
|
|
1564
|
+
callback?: PipelineCallback<B>,
|
|
1342
1565
|
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1343
1566
|
function pipeline<
|
|
1344
1567
|
A extends PipelineSource<any>,
|
|
1345
1568
|
T1 extends PipelineTransform<A, any>,
|
|
1346
1569
|
T2 extends PipelineTransform<T1, any>,
|
|
1347
1570
|
T3 extends PipelineTransform<T2, any>,
|
|
1348
|
-
B extends PipelineDestination<T3, any
|
|
1349
|
-
>(
|
|
1571
|
+
B extends PipelineDestination<T3, any>,
|
|
1572
|
+
>(
|
|
1573
|
+
source: A,
|
|
1574
|
+
transform1: T1,
|
|
1575
|
+
transform2: T2,
|
|
1576
|
+
transform3: T3,
|
|
1577
|
+
destination: B,
|
|
1578
|
+
callback?: PipelineCallback<B>,
|
|
1579
|
+
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1350
1580
|
function pipeline<
|
|
1351
1581
|
A extends PipelineSource<any>,
|
|
1352
1582
|
T1 extends PipelineTransform<A, any>,
|
|
1353
1583
|
T2 extends PipelineTransform<T1, any>,
|
|
1354
1584
|
T3 extends PipelineTransform<T2, any>,
|
|
1355
1585
|
T4 extends PipelineTransform<T3, any>,
|
|
1356
|
-
B extends PipelineDestination<T4, any
|
|
1357
|
-
>(
|
|
1586
|
+
B extends PipelineDestination<T4, any>,
|
|
1587
|
+
>(
|
|
1588
|
+
source: A,
|
|
1589
|
+
transform1: T1,
|
|
1590
|
+
transform2: T2,
|
|
1591
|
+
transform3: T3,
|
|
1592
|
+
transform4: T4,
|
|
1593
|
+
destination: B,
|
|
1594
|
+
callback?: PipelineCallback<B>,
|
|
1595
|
+
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
1358
1596
|
function pipeline(
|
|
1359
1597
|
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
1360
|
-
callback?: (err: NodeJS.ErrnoException | null) => void
|
|
1598
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
1361
1599
|
): NodeJS.WritableStream;
|
|
1362
1600
|
function pipeline(
|
|
1363
1601
|
stream1: NodeJS.ReadableStream,
|
|
1364
1602
|
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
1365
|
-
...streams: Array<
|
|
1603
|
+
...streams: Array<
|
|
1604
|
+
NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)
|
|
1605
|
+
>
|
|
1366
1606
|
): NodeJS.WritableStream;
|
|
1367
1607
|
namespace pipeline {
|
|
1368
|
-
function __promisify__<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
|
|
1369
|
-
|
|
1608
|
+
function __promisify__<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
|
|
1609
|
+
source: A,
|
|
1610
|
+
destination: B,
|
|
1611
|
+
options?: PipelineOptions,
|
|
1612
|
+
): PipelinePromise<B>;
|
|
1613
|
+
function __promisify__<
|
|
1614
|
+
A extends PipelineSource<any>,
|
|
1615
|
+
T1 extends PipelineTransform<A, any>,
|
|
1616
|
+
B extends PipelineDestination<T1, any>,
|
|
1617
|
+
>(
|
|
1370
1618
|
source: A,
|
|
1371
1619
|
transform1: T1,
|
|
1372
1620
|
destination: B,
|
|
1373
|
-
options?: PipelineOptions
|
|
1621
|
+
options?: PipelineOptions,
|
|
1374
1622
|
): PipelinePromise<B>;
|
|
1375
|
-
function __promisify__<
|
|
1623
|
+
function __promisify__<
|
|
1624
|
+
A extends PipelineSource<any>,
|
|
1625
|
+
T1 extends PipelineTransform<A, any>,
|
|
1626
|
+
T2 extends PipelineTransform<T1, any>,
|
|
1627
|
+
B extends PipelineDestination<T2, any>,
|
|
1628
|
+
>(
|
|
1376
1629
|
source: A,
|
|
1377
1630
|
transform1: T1,
|
|
1378
1631
|
transform2: T2,
|
|
1379
1632
|
destination: B,
|
|
1380
|
-
options?: PipelineOptions
|
|
1633
|
+
options?: PipelineOptions,
|
|
1381
1634
|
): PipelinePromise<B>;
|
|
1382
1635
|
function __promisify__<
|
|
1383
1636
|
A extends PipelineSource<any>,
|
|
1384
1637
|
T1 extends PipelineTransform<A, any>,
|
|
1385
1638
|
T2 extends PipelineTransform<T1, any>,
|
|
1386
1639
|
T3 extends PipelineTransform<T2, any>,
|
|
1387
|
-
B extends PipelineDestination<T3, any
|
|
1388
|
-
>(
|
|
1640
|
+
B extends PipelineDestination<T3, any>,
|
|
1641
|
+
>(
|
|
1642
|
+
source: A,
|
|
1643
|
+
transform1: T1,
|
|
1644
|
+
transform2: T2,
|
|
1645
|
+
transform3: T3,
|
|
1646
|
+
destination: B,
|
|
1647
|
+
options?: PipelineOptions,
|
|
1648
|
+
): PipelinePromise<B>;
|
|
1389
1649
|
function __promisify__<
|
|
1390
1650
|
A extends PipelineSource<any>,
|
|
1391
1651
|
T1 extends PipelineTransform<A, any>,
|
|
1392
1652
|
T2 extends PipelineTransform<T1, any>,
|
|
1393
1653
|
T3 extends PipelineTransform<T2, any>,
|
|
1394
1654
|
T4 extends PipelineTransform<T3, any>,
|
|
1395
|
-
B extends PipelineDestination<T4, any
|
|
1396
|
-
>(
|
|
1397
|
-
|
|
1655
|
+
B extends PipelineDestination<T4, any>,
|
|
1656
|
+
>(
|
|
1657
|
+
source: A,
|
|
1658
|
+
transform1: T1,
|
|
1659
|
+
transform2: T2,
|
|
1660
|
+
transform3: T3,
|
|
1661
|
+
transform4: T4,
|
|
1662
|
+
destination: B,
|
|
1663
|
+
options?: PipelineOptions,
|
|
1664
|
+
): PipelinePromise<B>;
|
|
1665
|
+
function __promisify__(
|
|
1666
|
+
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
1667
|
+
options?: PipelineOptions,
|
|
1668
|
+
): Promise<void>;
|
|
1398
1669
|
function __promisify__(
|
|
1399
1670
|
stream1: NodeJS.ReadableStream,
|
|
1400
1671
|
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
@@ -1424,7 +1695,7 @@ declare module 'stream' {
|
|
|
1424
1695
|
}
|
|
1425
1696
|
export = internal;
|
|
1426
1697
|
}
|
|
1427
|
-
declare module
|
|
1428
|
-
import stream = require(
|
|
1698
|
+
declare module "node:stream" {
|
|
1699
|
+
import stream = require("stream");
|
|
1429
1700
|
export = stream;
|
|
1430
1701
|
}
|