Interface Iterator<T, TReturn, TNext>

interface Iterator {
    next(...args): IteratorResult<T, TReturn>;
    return?(value?): IteratorResult<T, TReturn>;
    throw?(e?): IteratorResult<T, TReturn>;
}

Type Parameters

  • T

  • TReturn = any

  • TNext = undefined

Methods

  • Parameters

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

    Returns IteratorResult<T, TReturn>

  • Parameters

    • Optional value: TReturn

    Returns IteratorResult<T, TReturn>

  • Parameters

    • Optional e: any

    Returns IteratorResult<T, TReturn>

Generated using TypeDoc