UNPKG

448 BTypeScriptView Raw
1import type { ObjMap } from '../jsutils/ObjMap';
2import type { DocumentNode } from '../language/ast';
3/**
4 * separateOperations accepts a single AST document which may contain many
5 * operations and fragments and returns a collection of AST documents each of
6 * which contains a single operation as well the fragment definitions it
7 * refers to.
8 */
9export declare function separateOperations(
10 documentAST: DocumentNode,
11): ObjMap<DocumentNode>;