Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/ext/web/lib.deno_web.d.ts>ReadableStream

A modern runtime for JavaScript and TypeScript.
Latest
variable ReadableStream
import { ReadableStream } from "https://deno.land/x/deno@v2.0.4/ext/web/lib.deno_web.d.ts";

type

{ readonly prototype: ReadableStream; new (underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number; }): ReadableStream<Uint8Array>; new <R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; from<R>(asyncIterable: AsyncIterable<R> | Iterable<R | PromiseLike<R>>): ReadableStream<R>; }