summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts
blob: d059446557fa86db19156a99bf92897a186b974c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { ASTVisitor } from '../../language/visitor';
import { ASTValidationContext } from '../ValidationContext';

/**
 * Unique directive names per location
 *
 * A GraphQL document is only valid if all directives at a given location
 * are uniquely named.
 */
export function UniqueDirectivesPerLocationRule(
  context: ASTValidationContext,
): ASTVisitor;