Type alias IsomorphicGeneratorFunction<Item>

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

Function that returns an iterator or an asynchronous iterator.

Remarks

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

See

Type Parameters

  • Item = unknown

    Type of the items in the iterator or asynchronous iterator.