Interface Generator<T, TReturn, TNext>

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

Type Parameters

  • T = unknown

  • TReturn = any

  • TNext = unknown

Hierarchy (view full)

Methods

Generated using TypeDoc