File size: 413 Bytes
d4b85c0
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import type { PromiseOrValue } from '../jsutils/PromiseOrValue';
/**
 * Given an AsyncIterable and a callback function, return an AsyncIterator
 * which produces values mapped via calling the callback function.
 */
export declare function mapAsyncIterator<T, U, R = undefined>(
  iterable: AsyncGenerator<T, R, void> | AsyncIterable<T>,
  callback: (value: T) => PromiseOrValue<U>,
): AsyncGenerator<U, R, void>;