UNPKG

531 BTypeScriptView Raw
1import { DocumentNode, FragmentDefinitionNode, GraphQLSchema, OperationDefinitionNode } from 'graphql';
2import { Document, DocumentFile } from '../types';
3export declare function fixAnonymousDocument(documentNode: FragmentDefinitionNode | OperationDefinitionNode): string | null;
4export declare function transformDocumentsFiles(schema: GraphQLSchema, documentFiles: DocumentFile[]): Document;
5export declare function transformDocument(schema: GraphQLSchema, documentNode: DocumentNode, originalFilePath?: string | null): Document;