UniqueDirectivesPerLocation.d.ts 430 B

1234567891011121314
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. export function duplicateDirectiveMessage(directiveName: string): string;
  4. /**
  5. * Unique directive names per location
  6. *
  7. * A GraphQL document is only valid if all directives at a given location
  8. * are uniquely named.
  9. */
  10. export function UniqueDirectivesPerLocation(
  11. context: ASTValidationContext,
  12. ): ASTVisitor;