# Interface ReadableStreamDefaultReader<R>

interface ReadableStreamDefaultReader<R> {
closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}

#### Type Parameters

- R = any

#### Hierarchy (view full)

- ReadableStreamGenericReader
  - ReadableStreamDefaultReader

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

#####
Index

### Properties

closed

### Methods

cancel
read
releaseLock

##
Properties

### `Readonly` closed

closed: Promise<undefined>

Inherited from ReadableStreamGenericReader.closed

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

##
Methods

### cancel

- cancel(reason?): Promise<void>

- #### Parameters

  - `Optional` reason: any

  #### Returns Promise<void>

  Inherited from ReadableStreamGenericReader.cancel

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

### read

- read(): Promise<ReadableStreamReadResult<R>>

- #### Returns Promise<ReadableStreamReadResult<R>>

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

### releaseLock

- releaseLock(): void

- #### Returns void

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