Skip to content

Commit

Permalink
doc: add missing types
Browse files Browse the repository at this point in the history
Document the types returned by the `readable.readableObjectMode`,
`writable.writableLength`, and `writable.writableObjectMode` getters.

PR-URL: nodejs#28623
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
lpinca authored and Trott committed Jul 12, 2019
1 parent 9e34035 commit 28e18cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ Return the value of `highWaterMark` passed when constructing this
added: v9.4.0
-->

* {number}

This property contains the number of bytes (or objects) in the queue
ready to be written. The value provides introspection data regarding
the status of the `highWaterMark`.
Expand All @@ -513,6 +515,8 @@ the status of the `highWaterMark`.
added: v12.3.0
-->

* {boolean}

Getter for the property `objectMode` of a given `Writable` stream.

##### writable.write(chunk[, encoding][, callback])
Expand Down Expand Up @@ -1107,6 +1111,8 @@ the status of the `highWaterMark`.
added: v12.3.0
-->

* {boolean}

Getter for the property `objectMode` of a given `Readable` stream.

##### readable.resume()
Expand Down

0 comments on commit 28e18cf

Please sign in to comment.