UNPKG

@graphql-tools/utils

Version:

Common package containing utils and types for GraphQL tools

7 lines (6 loc) 225 B
export interface PromiseWithResolvers<T> { promise: Promise<T>; resolve: (value: T | PromiseLike<T>) => void; reject: (reason: any) => void; } export declare function createDeferred<T>(): PromiseWithResolvers<T>;