WritableStreamDefaultController

interface

interface WritableStreamDefaultController

This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.

variable

var WritableStreamDefaultController: { … }

The constructor object for WritableStreamDefaultController.

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

Constructors

constructor

new WritableStreamDefaultController(): never

Properties

signal

readonly signal: AbortSignal

prototype

readonly prototype: WritableStreamDefaultController

Methods

error

error(e?: any): void