WritableStreamDefaultController
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/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: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/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: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/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