UNPKG

@relay-graphql-js/validation-rules

Version:
13 lines (12 loc) 881 B
import { ASTNode, DirectiveNode, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, GraphQLOutputType, GraphQLType } from "graphql"; export declare function findFragmentSpreadParent(nodes: readonly any[]): FragmentSpreadNode | undefined; export declare function findFragmentDefinitionParent(nodes: readonly any[]): FragmentDefinitionNode | undefined; export declare function isFragmentSpread(node: any): node is FragmentSpreadNode; export declare function isFragmentDefinition(node: any): node is FragmentDefinitionNode; export declare function containsVariableNodes(node: ASTNode): boolean; export declare function makeNonNullable(type: GraphQLType): GraphQLType; export declare function getConnectionDirective(fieldNode: FieldNode): { key: string | null; directive: DirectiveNode; } | null; export declare function isConnectionType(type: GraphQLOutputType): boolean;