From ecd4924f04063e13f15a599306a3e2143b8f2a3d Mon Sep 17 00:00:00 2001 From: Aliaksei Tuzik Date: Thu, 7 Jun 2018 23:45:35 +0300 Subject: [PATCH] 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 Reviewed-By: Vse Mozhet Byt --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 014b2f68b3359b..ce6a80157c5c61 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -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,