UNPKG

391 BTypeScriptView Raw
1import type { MaybePromise } from './executor.js';
2/**
3 * Given an AsyncIterable and a callback function, return an AsyncIterator
4 * which produces values mapped via calling the callback function.
5 */
6export declare function mapAsyncIterator<T, U>(iterator: AsyncIterator<T>, onNext: (value: T) => MaybePromise<U>, onError?: any, onEnd?: () => MaybePromise<void>): AsyncIterableIterator<U>;