Type alias TTransIteratorSyncOrAsync<TIn, TOut>

TTransIteratorSyncOrAsync<TIn, TOut>: ((iterator: Iterator<TIn> | AsyncIterator<TIn>) => IterableIterator<TOut> | AsyncIterableIterator<TOut>)

Type Parameters

  • TIn = any

  • TOut = any

Type declaration

    • (iterator: Iterator<TIn> | AsyncIterator<TIn>): IterableIterator<TOut> | AsyncIterableIterator<TOut>
    • A transIterator is a function that takes a (Sync or Async) Iterator as input and outputs a (Pipeable, Sync or Async, Iterable) Iterator

      Parameters

      • iterator: Iterator<TIn> | AsyncIterator<TIn>

      Returns IterableIterator<TOut> | AsyncIterableIterator<TOut>

Generated using TypeDoc