diff --git a/doc/api/stream.md b/doc/api/stream.md index 1e87af4d8f6677..a4f8ed6e5aedab 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2579,6 +2579,9 @@ further errors except from `_destroy()` may be emitted as `'error'`. -* `stream` {Stream} A readable and/or writable stream. +* `stream` {Stream|ReadableStream|WritableStream} + +A readable and/or writable stream/webstream. * `options` {Object} * `error` {boolean} If set to `false`, then a call to `emit('error', err)` is @@ -3022,10 +3027,16 @@ added: v17.0.0 * `src` {Stream|Blob|ArrayBuffer|string|Iterable|AsyncIterable| - AsyncGeneratorFunction|AsyncFunction|Promise|Object} + AsyncGeneratorFunction|AsyncFunction|Promise|Object| + ReadableStream|WritableStream} A utility method for creating duplex streams. @@ -3045,6 +3056,8 @@ A utility method for creating duplex streams. `writable` into `Stream` and then combines them into `Duplex` where the `Duplex` will write to the `writable` and read from the `readable`. * `Promise` converts into readable `Duplex`. Value `null` is ignored. +* `ReadableStream` converts into readable `Duplex`. +* `WritableStream` converts into writable `Duplex`. * Returns: {stream.Duplex} If an `Iterable` object containing promises is passed as an argument,