TransformStreamDefaultController

interface

interface TransformStreamDefaultController<O = any>

variable

var TransformStreamDefaultController: { … }

The constructor object for TransformStreamDefaultController.

Instances are passed to a TransformStream's transformer callbacks rather than constructed directly, so calling the constructor throws.

Constructors

constructor

new TransformStreamDefaultController(): never

Properties

desiredSize

readonly desiredSize: number | null

prototype

readonly prototype: TransformStreamDefaultController

Methods

enqueue

enqueue(chunk?: O): void

error

error(reason?: any): void

terminate

terminate(): void