Interface Generator<T, TReturn, TNext>

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

Type Parameters

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

Hierarchy

Methods