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

Type Parameters

  • T = unknown
  • TReturn = any
  • TNext = unknown

Hierarchy-Diagram

UML class diagram of Generator
Legend
icon for an interface in the UML class diagram interface
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Methods