summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts
blob: 351449d8b9f33a00315debd3f0f003fd59996cb8 (plain)
1
2
3
4
5
6
7
8
9
10
import { ASTVisitor } from '../../language/visitor';
import { ValidationContext } from '../ValidationContext';

/**
 * No unused variables
 *
 * A GraphQL operation is only valid if all variables defined by an operation
 * are used, either directly or within a spread fragment.
 */
export function NoUnusedVariablesRule(context: ValidationContext): ASTVisitor;