Files
Job_App/node_modules/graphql-tools/dist/stitching/mapAsyncIterator.d.ts
2025-03-28 12:30:19 +11:00

6 lines
306 B
TypeScript

/**
* Given an AsyncIterable and a callback function, return an AsyncIterator
* which produces values mapped via calling the callback function.
*/
export default function mapAsyncIterator<T, U>(iterator: AsyncIterator<T>, callback: (value: T) => Promise<U> | U, rejectCallback?: any): AsyncIterator<U>;