index.d.ts 259 B

1234567
  1. declare global {
  2. const StopIteration: (object & { readonly __brand__?: unique symbol }) | undefined;
  3. }
  4. declare function getStopIterationIterator<T>(origIterator: { next(): IteratorResult<T> }): Iterator<T, unknown, T>;
  5. export = getStopIterationIterator;