mapAsyncIterator.d.ts 306 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 default function mapAsyncIterator<T, U>(iterator: AsyncIterator<T>, callback: (value: T) => Promise<U> | U, rejectCallback?: any): AsyncIterator<U>;