Interface AsyncGenerator<T, TReturn, TNext>

Type Parameters

  • T = unknown

  • TReturn = any

  • TNext = unknown

Hierarchy

Methods

  • Returns AsyncGenerator<T, TReturn, TNext>

  • NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.

    Parameters

    • Rest ...args: [] | [TNext]

    Returns Promise<IteratorResult<T, TReturn>>