Interface IterableIterator<T, TReturn, TNext>
interface IterableIterator<T, TReturn = any, TNext = any> {
"[iterator]"(): IterableIterator<T, TReturn, TNext>;
next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
return(value?: TReturn): IteratorResult<T, TReturn>;
throw(e?: any): IteratorResult<T, TReturn>;
}
"[iterator]"(): IterableIterator<T, TReturn, TNext>;
next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
return(value?: TReturn): IteratorResult<T, TReturn>;
throw(e?: any): IteratorResult<T, TReturn>;
}
Type Parameters
Hierarchy
- Iterator<T, TReturn, TNext>
- IterableIterator (View Summary)
Index
Methods
Methods
[iterator]
- "[iterator]"(): IterableIterator<T, TReturn, TNext>
Returns IterableIterator<T, TReturn, TNext>
next
- next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>
Parameters
- ...__namedParameters: [] | [TNext]
Returns IteratorResult<T, TReturn>
Optional
return
- return(value?: TReturn): IteratorResult<T, TReturn>
Parameters
Optional
value: TReturn
Returns IteratorResult<T, TReturn>
Optional
throw
- throw(e?: any): IteratorResult<T, TReturn>
Parameters
Optional
e: any
Returns IteratorResult<T, TReturn>
Describes a user-defined Iterator that is also iterable.