NoUnusedFragments.d.ts 439 B

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