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

12 lines
454 B
TypeScript

import { PromiseOrValue } from '../jsutils/PromiseOrValue';
/**
* 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>(
iterable: AsyncIterable<T>,
callback: (arg: T) => PromiseOrValue<U>,
rejectCallback?: (arg: any) => PromiseOrValue<U>,
): any; // TS_SPECIFIC: es2018.asyncgenerator requires typescript@3.6