UNPKG

482 BTypeScriptView Raw
1import { GraphQLSchema, GraphQLError } from 'graphql';
2import { DocumentFile } from 'graphql-codegen-core';
3export interface LoadDocumentError {
4 readonly filePath: string;
5 readonly errors: ReadonlyArray<GraphQLError>;
6}
7export declare const validateGraphQlDocuments: (schema: GraphQLSchema, documentFiles: DocumentFile[]) => ReadonlyArray<LoadDocumentError>;
8export declare function checkValidationErrors(loadDocumentErrors: ReadonlyArray<LoadDocumentError>): void | never;