Interface Iterator<T, TReturn, TNext>

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

Type Parameters

  • T
  • TReturn = any
  • TNext = undefined

Hierarchy (view full)

Methods