UNPKG

602 BTypeScriptView Raw
1import type { ASTVisitor } from '../../../language/visitor';
2import type { ValidationContext } from '../../ValidationContext';
3/**
4 * No deprecated
5 *
6 * A GraphQL document is only valid if all selected fields and all used enum values have not been
7 * deprecated.
8 *
9 * Note: This rule is optional and is not part of the Validation section of the GraphQL
10 * Specification. The main purpose of this rule is detection of deprecated usages and not
11 * necessarily to forbid their use when querying a service.
12 */
13export declare function NoDeprecatedCustomRule(
14 context: ValidationContext,
15): ASTVisitor;