UNPKG

454 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ValidationContext } from '../ValidationContext';
3/**
4 * Variables are input types
5 *
6 * A GraphQL operation is only valid if all the variables it defines are of
7 * input types (scalar, enum, or input object).
8 *
9 * See https://spec.graphql.org/draft/#sec-Variables-Are-Input-Types
10 */
11export declare function VariablesAreInputTypesRule(
12 context: ValidationContext,
13): ASTVisitor;