Interface ReadableStreamDefaultController<R>

interface ReadableStreamDefaultController<R> {
    get desiredSize(): number;
    close(): void;
    enqueue(chunk?): void;
    error(reason): void;
}

Type Parameters

  • R = any

Accessors

Methods

Accessors

  • get desiredSize(): number
  • Returns number

Methods

  • Parameters

    • Optional chunk: R

    Returns void

  • Parameters

    • reason: any

    Returns void