Type alias IsomorphicGeneratorFunction<Item>

IsomorphicGeneratorFunction<Item>: Function<ReadOnlyArray<never>, ReadOnlyAsyncIterator<Item> | ReadOnlyIterator<Item>>

Function that returns an iterator or an asynchronous iterator.


This is mainly used for in the createIterableIterator function, to infer the type of the generator function and the output.


Type Parameters

  • Item = unknown

    Type of the items in the iterator or asynchronous iterator.