UNPKG

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