diff options
Diffstat (limited to 'includes/external/school/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts')
-rw-r--r-- | includes/external/school/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts b/includes/external/school/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts new file mode 100644 index 0000000..351449d --- /dev/null +++ b/includes/external/school/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts @@ -0,0 +1,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; |