mapAsyncIterator.d.cts 314 B

12345
  1. /**
  2. * Given an AsyncIterable and a callback function, return an AsyncIterator
  3. * which produces values mapped via calling the callback function.
  4. */
  5. export declare function mapAsyncIterator<T, U>(iterator: AsyncIterator<T>, callback: (value: T) => Promise<U> | U, rejectCallback?: any): AsyncIterableIterator<U>;