Skip to content

TransformStreamDefaultController

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2802

The TransformStreamDefaultController interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.

MDN Reference

O = any

get desiredSize(): number | null

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2808

The desiredSize read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.

MDN Reference

number | null

enqueue(chunk?): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2814

The enqueue() method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.

MDN Reference

O

void


error(reason): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2820

The error() method of the TransformStreamDefaultController interface errors both sides of the stream.

MDN Reference

any

void


terminate(): void

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:2826

The terminate() method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.

MDN Reference

void