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

/**
 * Known directives
 *
 * A GraphQL document is only valid if all `@directives` are known by the
 * schema and legally positioned.
 */
export function KnownDirectivesRule(
  context: ValidationContext | SDLValidationContext,
): ASTVisitor;