UniqueDirectivesPerLocationRule.d.ts 516 B

12345678910111213141516
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import 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. */
  14. export declare function UniqueDirectivesPerLocationRule(
  15. context: ValidationContext | SDLValidationContext,
  16. ): ASTVisitor;