UNPKG

graphql-mocks

Version:
16 lines (15 loc) 515 B
import { GraphQLResolveInfo } from 'graphql'; declare type ResolverStash = { parent: unknown; args: Record<string, unknown>; context: Record<string, unknown>; info: GraphQLResolveInfo; result: unknown; }; export declare const stashKey: unique symbol; export declare function stashFor(ref: { [key: string]: unknown; [stashKey]: ResolverStash | undefined; }): ResolverStash | undefined; export declare const stashStateWrapper: import("../resolver/types").NamedWrapper<"FIELD">; export {};