Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
10 lines
413 B
TypeScript
10 lines
413 B
TypeScript
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>;
|