# Interface ReadableStreamDefaultController<R>

interface ReadableStreamDefaultController<R> {
desiredSize: number;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}

#### Type Parameters

- R = any

- Defined in node_modules/@types/node/stream/web.d.ts:240
- Defined in node_modules/@types/node/stream/web.d.ts:246

#####
Index

### Properties

desiredSize

### Methods

close
enqueue
error

##
Properties

### `Readonly` desiredSize

desiredSize: number

- Defined in node_modules/@types/node/stream/web.d.ts:241

##
Methods

### close

- close(): void

- #### Returns void

  - Defined in node_modules/@types/node/stream/web.d.ts:242

### enqueue

- enqueue(chunk?): void

- #### Parameters

  - `Optional` chunk: R

  #### Returns void

  - Defined in node_modules/@types/node/stream/web.d.ts:243

### error

- error(e?): void

- #### Parameters

  - `Optional` e: any

  #### Returns void

  - Defined in node_modules/@types/node/stream/web.d.ts:244