Type Alias UnknownIterator<T, TReturn, TNext>

UnknownIterator<T, TReturn, TNext>: Iterator<T, TReturn, TNext> | AsyncIterator<T, TReturn, TNext>

An Iterator that could either be sync or async.

Type Parameters

  • T
  • TReturn = any
  • TNext = undefined