# Interface AsyncIterableIterator<T, TReturn, TNext>

Describes a user-defined AsyncIterator that is also async iterable.

interface AsyncIterableIterator<T, TReturn, TNext> {
next(...__namedParameters: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
[asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
}

#### Type Parameters

- T
- TReturn = any
- TNext = any

#### Hierarchy (view full)

- AsyncIterator<T, TReturn, TNext>
  - AsyncIterableIterator

- Defined in node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:44

#####
Index

### Methods

next
return?
throw?
[asyncIterator]

##
Methods

### next

- next(...__namedParameters): Promise<IteratorResult<T, TReturn>>

- #### Parameters

  - `Rest`...__namedParameters: [] | [TNext]

  #### Returns Promise<IteratorResult<T, TReturn>>

  Inherited from AsyncIterator.next

  - Defined in node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:32

### `Optional` return

- return(value?): Promise<IteratorResult<T, TReturn>>

- #### Parameters

  - `Optional` value: TReturn | PromiseLike<TReturn>

  #### Returns Promise<IteratorResult<T, TReturn>>

  Inherited from AsyncIterator.return

  - Defined in node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:33

### `Optional` throw

- throw(e?): Promise<IteratorResult<T, TReturn>>

- #### Parameters

  - `Optional` e: any

  #### Returns Promise<IteratorResult<T, TReturn>>

  Inherited from AsyncIterator.throw

  - Defined in node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:34

### [asyncIterator]

- [asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>

- #### Returns AsyncIterableIterator<T, TReturn, TNext>

  - Defined in node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:45