/** * Custom type definitions for GraphQL. */ import { GraphQLObjectType, GraphQLScalarType, GraphQLInputObjectType, GraphQLList, GraphQLEnumType, GraphQLUnionType, GraphQLFieldResolver } from 'graphql'; export declare enum GraphQLOperationType { Query = 0, Mutation = 1, Subscription = 2 } export declare type GraphQLType = GraphQLObjectType | GraphQLInputObjectType | GraphQLList | GraphQLUnionType | GraphQLEnumType | GraphQLScalarType; declare type Arg = { type: any; description?: string; }; export declare type Args = { [key: string]: Arg; }; export declare type SubscriptionContext = { pubsub: any; [key: string]: any; }; export declare type SubscriptionIterator = (root: object, args: object, context: SubscriptionContext, info?: object) => AsyncIterable; export declare type Field = { type: GraphQLType; resolve?: GraphQLFieldResolver; subscribe?: GraphQLFieldResolver; args?: Args; description: string; }; export {};