File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2622,7 +2622,7 @@ changes:
26222622 finished before the call to `finished(stream, cb)`.
26232623-->
26242624
2625- * ` stream ` {Stream} A readable and/or writable stream.
2625+ * ` stream ` {Stream|ReadableStream|WritableStream } A readable and/or writable stream/webstream .
26262626
26272627* ` options ` {Object}
26282628 * ` error ` {boolean} If set to ` false ` , then a call to ` emit('error', err) ` is
@@ -3034,7 +3034,7 @@ added: v16.8.0
30343034-->
30353035
30363036* ` src ` {Stream|Blob|ArrayBuffer|string|Iterable|AsyncIterable|
3037- AsyncGeneratorFunction|AsyncFunction|Promise|Object}
3037+ AsyncGeneratorFunction|AsyncFunction|Promise|Object|ReadableStream|WritableStream }
30383038
30393039A utility method for creating duplex streams.
30403040
@@ -3054,6 +3054,8 @@ A utility method for creating duplex streams.
30543054 ` writable ` into ` Stream ` and then combines them into ` Duplex ` where the
30553055 ` Duplex ` will write to the ` writable ` and read from the ` readable ` .
30563056* ` Promise ` converts into readable ` Duplex ` . Value ` null ` is ignored.
3057+ * ` ReadableStream ` converts into readable ` Duplex ` .
3058+ * ` WritableStream ` converts into writable ` Duplex ` .
30573059* Returns: {stream.Duplex}
30583060
30593061If an ` Iterable ` object containing promises is passed as an argument,
You can’t perform that action at this time.
0 commit comments