Skip to content

Commit

Permalink
doc: add streams to the pipeline function signature
Browse files Browse the repository at this point in the history
PR-URL: nodejs#34153
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
rickyes authored and jasnell committed Jul 3, 2020
1 parent 2110fad commit 7f2cf0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/stream.md
Expand Up @@ -1597,6 +1597,7 @@ const cleanup = finished(rs, (err) => {
```

### `stream.pipeline(source[, ...transforms], destination, callback)`
### `stream.pipeline(streams, callback)`
<!-- YAML
added: v10.0.0
changes:
Expand All @@ -1611,6 +1612,7 @@ changes:
which are expected to emit `'close'`.
-->

* `streams` {Stream[]|Iterable[]|AsyncIterable[]|Function[]}
* `source` {Stream|Iterable|AsyncIterable|Function}
* Returns: {Iterable|AsyncIterable}
* `...transforms` {Stream|Function}
Expand Down

0 comments on commit 7f2cf0f

Please sign in to comment.