From d2e695dba389f5c5a8db9940d8bda94c305c93c2 Mon Sep 17 00:00:00 2001 From: Priyank Singh Date: Wed, 15 Jul 2020 21:26:34 +0530 Subject: [PATCH] doc: add writable and readable options to Duplex docs Fixes: https://github.com/nodejs/node/issues/34382 --- doc/api/stream.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 361958a11a6c33..97e848f56fa1fa 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2535,6 +2535,10 @@ changes: * `allowHalfOpen` {boolean} If set to `false`, then the stream will automatically end the writable side when the readable side ends. **Default:** `true`. + * `readable` {boolean} Sets whether the `Duplex` should be readable. + **Default:** `true`. + * `writable` {boolean} Sets whether the `Duplex` should be writable. + **Default:** `true`. * `readableObjectMode` {boolean} Sets `objectMode` for readable side of the stream. Has no effect if `objectMode` is `true`. **Default:** `false`. * `writableObjectMode` {boolean} Sets `objectMode` for writable side of the