/** * 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 type GraphQLType = GraphQLObjectType | GraphQLInputObjectType | GraphQLList | GraphQLUnionType | GraphQLEnumType | GraphQLScalarType; type Arg = { type: any; description?: string; }; export type Args = { [key: string]: Arg; }; export type SubscriptionContext = { pubsub: any; [key: string]: any; }; export type SubscriptionIterator = (root: object, args: object, context: SubscriptionContext, info?: object) => AsyncIterable; export type Field = { type: GraphQLType; resolve?: GraphQLFieldResolver; subscribe?: GraphQLFieldResolver; args?: Args; description: string; }; export {};