NoUnusedVariablesRule.d.ts 361 B

12345678910
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. /**
  4. * No unused variables
  5. *
  6. * A GraphQL operation is only valid if all variables defined by an operation
  7. * are used, either directly or within a spread fragment.
  8. */
  9. export function NoUnusedVariablesRule(context: ValidationContext): ASTVisitor;