You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
413 B
10 lines
413 B
4 months ago
|
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>;
|