Skip to content

ReadableStreamDefaultController

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

The ReadableStreamDefaultController interface of the Streams API represents a controller allowing control of a ReadableStream’s state and internal queue.

MDN Reference

R = any

get desiredSize(): null | number

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

The desiredSize read-only property of the required to fill the stream’s internal queue.

MDN Reference

null | number

close(): void

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

The close() method of the ReadableStreamDefaultController interface closes the associated stream.

MDN Reference

void


enqueue(chunk?): void

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

The enqueue() method of the js-nolint enqueue(chunk) - chunk - : The chunk to enqueue.

MDN Reference

R

void


error(reason): void

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

The error() method of the with the associated stream to error.

MDN Reference

any

void