Skip to content

Commit b6ac28f

Browse files
committed
doc: include webstreams in finished() and Duplex.from() parameters
1 parent 863a416 commit b6ac28f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/api/stream.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

30393039
A 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

30593061
If an `Iterable` object containing promises is passed as an argument,

0 commit comments

Comments
 (0)