separateOperations.d.ts 448 B

1234567891011
  1. import type { ObjMap } from '../jsutils/ObjMap';
  2. import 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. */
  9. export declare function separateOperations(
  10. documentAST: DocumentNode,
  11. ): ObjMap<DocumentNode>;