UNPKG

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