interface ReadableStream {
    readable: boolean;
    [asyncIterator](): AsyncIterableIterator<string | Buffer>;
    addListener(event, listener): ReadableStream;
    emit(event, ...args): boolean;
    eventNames(): (string | symbol)[];
    getMaxListeners(): number;
    isPaused(): boolean;
    listenerCount(type): number;
    listeners(event): Function[];
    off(event, listener): ReadableStream;
    on(event, listener): ReadableStream;
    once(event, listener): ReadableStream;
    pause(): ReadableStream;
    pipe<T>(destination, options?): T;
    prependListener(event, listener): ReadableStream;
    prependOnceListener(event, listener): ReadableStream;
    rawListeners(event): Function[];
    read(size?): string | Buffer;
    removeAllListeners(event?): ReadableStream;
    removeListener(event, listener): ReadableStream;
    resume(): ReadableStream;
    setEncoding(encoding): ReadableStream;
    setMaxListeners(n): ReadableStream;
    unpipe(destination?): ReadableStream;
    unshift(chunk, encoding?): void;
    wrap(oldStream): ReadableStream;
}

Hierarchy

Implemented by

Properties

readable: boolean

Methods

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

  • Returns (string | symbol)[]

  • Returns number

  • Returns boolean

  • Parameters

    • type: string | symbol

    Returns number

  • Parameters

    • event: string | symbol

    Returns Function[]

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Type Parameters

    Parameters

    • destination: T
    • Optional options: {
          end?: boolean;
      }
      • Optional end?: boolean

    Returns T

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Parameters

    • event: string | symbol

    Returns Function[]

  • Parameters

    • Optional size: number

    Returns string | Buffer

  • Parameters

    • Optional event: string | symbol

    Returns ReadableStream

  • Parameters

    • event: string | symbol
    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ReadableStream

  • Parameters

    • n: number

    Returns ReadableStream

  • Parameters

    Returns void