Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
10 lines
413 B
Plaintext
10 lines
413 B
Plaintext
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>;
|