UNPKG

495 BTypeScriptView Raw
1import { ASTNode, GraphQLObjectType, GraphQLSchema, OperationTypeNode } from 'graphql';
2export declare function getDefinedRootType(schema: GraphQLSchema, operation: OperationTypeNode, nodes?: ASTNode[]): GraphQLObjectType;
3export declare const getRootTypeNames: (schema: GraphQLSchema) => Set<string>;
4export declare const getRootTypes: (schema: GraphQLSchema) => Set<GraphQLObjectType>;
5export declare const getRootTypeMap: (schema: GraphQLSchema) => Map<OperationTypeNode, GraphQLObjectType>;