WritableStreamDefaultController
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2783
The WritableStreamDefaultController interface of the Streams API represents a controller allowing control of a WritableStream’s state.
Accessors
Section titled “Accessors”signal
Section titled “signal”Get Signature
Section titled “Get Signature”get signal():
AbortSignal
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2789
The read-only signal property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
Returns
Section titled “Returns”Methods
Section titled “Methods”error()
Section titled “error()”error(
reason?):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:2795
The error() method of the with the associated stream to error.
Parameters
Section titled “Parameters”reason?
Section titled “reason?”any
Returns
Section titled “Returns”void