NoUndefinedVariables.d.ts 502 B

12345678910111213141516
  1. import Maybe from '../../tsutils/Maybe';
  2. import { ASTVisitor } from '../../language/visitor';
  3. import { ValidationContext } from '../ValidationContext';
  4. export function undefinedVarMessage(
  5. varName: string,
  6. opName: Maybe<string>,
  7. ): string;
  8. /**
  9. * No undefined variables
  10. *
  11. * A GraphQL operation is only valid if all variables encountered, both directly
  12. * and via fragment spreads, are defined by that operation.
  13. */
  14. export function NoUndefinedVariables(context: ValidationContext): ASTVisitor;