doc: fix type in stream doc
Extend return type of `read()` method with `any` which is a valid return type for readable streams in object mode. PR-URL: https://github.com/nodejs/node/pull/21178 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
2237a8e45d
commit
00e479fed4
@ -954,7 +954,7 @@ added: v0.9.4
|
||||
-->
|
||||
|
||||
* `size` {number} Optional argument to specify how much data to read.
|
||||
* Returns: {string|Buffer|null}
|
||||
* Returns: {string|Buffer|null|any}
|
||||
|
||||
The `readable.read()` method pulls some data out of the internal buffer and
|
||||
returns it. If no data available to be read, `null` is returned. By default,
|
||||
|
Loading…
x
Reference in New Issue
Block a user