UNPKG

672 BTypeScriptView Raw
1import { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLOutputType, GraphQLSchema, SelectionNode } from 'graphql';
2declare type Maybe<T> = null | T;
3export declare function uniqueBy<T>(array: readonly SelectionNode[], iteratee: (item: FieldNode) => T): SelectionNode[];
4export declare function inlineRelevantFragmentSpreads(fragmentDefinitions: {
5 [key: string]: FragmentDefinitionNode | undefined;
6}, selections: readonly SelectionNode[], selectionSetType?: Maybe<GraphQLOutputType>): readonly SelectionNode[];
7export default function mergeAST(documentAST: DocumentNode, schema?: GraphQLSchema): DocumentNode;
8export {};
9//# sourceMappingURL=mergeAst.d.ts.map
\No newline at end of file