UNPKG

410 BTypeScriptView Raw
1import { ASTVisitor, DocumentNode, GraphQLSchema, ValidationContext } from 'graphql';
2export type ValidationRule = (context: ValidationContext) => ASTVisitor;
3export declare function validateGraphQlDocuments(schema: GraphQLSchema, documents: DocumentNode[], rules?: ValidationRule[]): readonly import("graphql").GraphQLError[];
4export declare function createDefaultRules(): import("graphql").ValidationRule[];