UNPKG

587 BTypeScriptView Raw
1declare function IteratorNext<T, TReturn = any, TNext = unknown>(
2 iterator: Iterator<T, TReturn, TNext>,
3 value?: TNext,
4): IteratorResult<T, TReturn>;
5declare function IteratorNext<T, TReturn = any, TNext = unknown>(
6 iterator: AsyncIterator<T, TReturn, TNext>,
7 value?: TNext,
8): Promise<IteratorResult<T, TReturn>>;
9declare function IteratorNext<T, TReturn = any, TNext = unknown>(
10 iterator: Iterator<T, TReturn, TNext> | AsyncIterator<T, TReturn, TNext>,
11 value?: TNext,
12): IteratorResult<T, TReturn> | Promise<IteratorResult<T, TReturn>>;
13export = IteratorNext;