KnownDirectivesRule.d.ts 378 B

123456789101112
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext, SDLValidationContext } from '../ValidationContext';
  3. /**
  4. * Known directives
  5. *
  6. * A GraphQL document is only valid if all `@directives` are known by the
  7. * schema and legally positioned.
  8. */
  9. export function KnownDirectivesRule(
  10. context: ValidationContext | SDLValidationContext,
  11. ): ASTVisitor;