UNPKG

@graphql-tools/utils

Version:

Common package containing utils and types for GraphQL tools

3 lines (2 loc) 212 B
import { MaybePromise } from './executor.js'; export declare function mapMaybePromise<T, R>(value: MaybePromise<T>, mapper: (v: T) => MaybePromise<R>, errorMapper?: (e: any) => MaybePromise<R>): MaybePromise<R>;