ReadableStreamDefaultController

interface

interface ReadableStreamDefaultController<R = any>

variable

var ReadableStreamDefaultController: { … }

The constructor object for ReadableStreamDefaultController.

Instances are passed to a ReadableStream's underlying source callbacks rather than constructed directly, so calling the constructor throws.

Constructors

constructor

new ReadableStreamDefaultController(): never

Properties

desiredSize

readonly desiredSize: number | null

prototype

readonly prototype: ReadableStreamDefaultController

Methods

close

close(): void

enqueue

enqueue(chunk?: R): void

error

error(e?: any): void