NoUnusedVariables.d.ts 493 B

12345678910111213141516
  1. import Maybe from '../../tsutils/Maybe';
  2. import { ASTVisitor } from '../../language/visitor';
  3. import { ValidationContext } from '../ValidationContext';
  4. export function unusedVariableMessage(
  5. varName: string,
  6. opName: Maybe<string>,
  7. ): string;
  8. /**
  9. * No unused variables
  10. *
  11. * A GraphQL operation is only valid if all variables defined by an operation
  12. * are used, either directly or within a spread fragment.
  13. */
  14. export function NoUnusedVariables(context: ValidationContext): ASTVisitor;