From ee7fbdc9961f0f77e0568555ac4199dd6eb55cf0 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Tue, 11 Jun 2019 16:03:37 +0800 Subject: [PATCH] chore(node): add Readable.from utility Added in v12.3.0 from PR nodejs/node#27660 --- types/node/stream.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/node/stream.d.ts b/types/node/stream.d.ts index 84ce0ea9b551da7..0b58af6804385a8 100644 --- a/types/node/stream.d.ts +++ b/types/node/stream.d.ts @@ -18,6 +18,7 @@ declare module "stream" { } class Readable extends Stream implements NodeJS.ReadableStream { + static from(iterable: Iterable | AsyncIterable, opts?: ReadableOptions): NodeJS.ReadableStream; readable: boolean; readonly readableHighWaterMark: number; readonly readableLength: number;