concatAST.d.ts 382 B

123456789
  1. import type { DocumentNode } from '../language/ast';
  2. /**
  3. * Provided a collection of ASTs, presumably each from different files,
  4. * concatenate the ASTs together into batched AST, useful for validating many
  5. * GraphQL source files which together represent one conceptual application.
  6. */
  7. export declare function concatAST(
  8. documents: ReadonlyArray<DocumentNode>,
  9. ): DocumentNode;