UniqueDirectiveNames.d.ts 470 B

12345678910111213
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { SDLValidationContext } from '../ValidationContext';
  3. export function duplicateDirectiveNameMessage(directiveName: string): string;
  4. export function existedDirectiveNameMessage(directiveName: string): string;
  5. /**
  6. * Unique directive names
  7. *
  8. * A GraphQL document is only valid if all defined directives have unique names.
  9. */
  10. export function UniqueDirectiveNames(context: SDLValidationContext): ASTVisitor;