Skip to content

Commit 2260037

Browse files
preyunkaddaleax
authored andcommitted
doc: add writable and readable options to Duplex docs
Fixes: #34382 PR-URL: #34383 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Ricky Zhou <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Anto Aravinth <[email protected]>
1 parent ce280c1 commit 2260037

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/stream.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,6 +2323,10 @@ changes:
23232323
* `allowHalfOpen` {boolean} If set to `false`, then the stream will
23242324
automatically end the writable side when the readable side ends.
23252325
**Default:** `true`.
2326+
* `readable` {boolean} Sets whether the `Duplex` should be readable.
2327+
**Default:** `true`.
2328+
* `writable` {boolean} Sets whether the `Duplex` should be writable.
2329+
**Default:** `true`.
23262330
* `readableObjectMode` {boolean} Sets `objectMode` for readable side of the
23272331
stream. Has no effect if `objectMode` is `true`. **Default:** `false`.
23282332
* `writableObjectMode` {boolean} Sets `objectMode` for writable side of the

0 commit comments

Comments
 (0)