Type alias ReadableStream<T>

ReadableStream<T>: {
    cancel: ((reason?) => Promise<void>);
    getReader(): ReadableStreamDefaultReader<T>;
    getReader(options): unknown;
}

Minimal types for a ReadableStream.

Type Parameters

  • T = unknown

Type declaration

Todo

Missing declarations for constructor, pipeThrough, pipeTo and tee.

Generated using TypeDoc