UNPKG

516 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type {
3 SDLValidationContext,
4 ValidationContext,
5} from '../ValidationContext';
6/**
7 * Unique directive names per location
8 *
9 * A GraphQL document is only valid if all non-repeatable directives at
10 * a given location are uniquely named.
11 *
12 * See https://spec.graphql.org/draft/#sec-Directives-Are-Unique-Per-Location
13 */
14export declare function UniqueDirectivesPerLocationRule(
15 context: ValidationContext | SDLValidationContext,
16): ASTVisitor;