doc: add streams to the pipeline function signature

PR-URL: https://github.com/nodejs/node/pull/34153
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
rickyes authored and Myles Borins committed 2020-07-16 17:09:00 -04:00
1 parent 9f0bf5c9e1
commit ab6b786e9d
1 file changed
+2
+2
View File
@@ -1598,6 +1598,7 @@ const cleanup = finished(rs, (err) => {
```
### `stream.pipeline(source[, ...transforms], destination, callback)`
### `stream.pipeline(streams, callback)`
<!-- YAML
added: v10.0.0
changes:
@@ -1612,6 +1613,7 @@ changes:
which are expected to emit `'close'`.
-->
* `streams` {Stream[]|Iterable[]|AsyncIterable[]|Function[]}
* `source` {Stream|Iterable|AsyncIterable|Function}
* Returns: {Iterable|AsyncIterable}
* `...transforms` {Stream|Function}