mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: include context on .toWeb() parameters
Refs: https://github.com/nodejs/node/issues/46347 PR-URL: https://github.com/nodejs/node/pull/46617 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
c8974d678a
commit
e6db6bedf7
1 file changed
+8
-2
+8
-2
@@ -2976,8 +2976,14 @@ added: v17.0.0
|
||||
* `streamReadable` {stream.Readable}
|
||||
* `options` {Object}
|
||||
* `strategy` {Object}
|
||||
* `highWaterMark` {number}
|
||||
* `size` {Function}
|
||||
* `highWaterMark` {number} The maximum internal queue size (of the created
|
||||
`ReadableStream`) before backpressure is applied in reading from the given
|
||||
`stream.Readable`. If no value is provided, it will be taken from the
|
||||
given `stream.Readable`.
|
||||
* `size` {Function} A function that size of the given chunk of data.
|
||||
If no value is provided, the size will be `1` for all the chunks.
|
||||
* `chunk` {any}
|
||||
* Returns: {number}
|
||||
* Returns: {ReadableStream}
|
||||
|
||||
### `stream.Writable.fromWeb(writableStream[, options])`
|
||||
|
||||
Reference in new issue
Block a user