NoUnusedFragmentsRule.d.ts 381 B

12345678910
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. /**
  4. * No unused fragments
  5. *
  6. * A GraphQL document is only valid if all fragment definitions are spread
  7. * within operations, or spread within other fragments spread within operations.
  8. */
  9. export function NoUnusedFragmentsRule(context: ValidationContext): ASTVisitor;