Interface ReadableStream<R>

This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.

Type Parameters

  • R = any

Hierarchy

  • ReadableStream

Properties

locked: boolean

Methods

  • Parameters

    • Optional reason: any

    Returns Promise<void>

  • Parameters

    • Optional reason: any

    Returns Promise<void>

  • Parameters

    • callbackfn: ((value: any, key: number, parent: ReadableStream<R>) => void)
    • Optional thisArg: any

    Returns void

  • Parameters

    • callbackfn: ((value: any, key: number, parent: ReadableStream<R>) => void)
    • Optional thisArg: any

    Returns void

Generated using TypeDoc