UniqueEnumValueNames.d.ts 507 B

12345678910111213141516171819
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { SDLValidationContext } from '../ValidationContext';
  3. export function duplicateEnumValueNameMessage(
  4. typeName: string,
  5. valueName: string,
  6. ): string;
  7. export function existedEnumValueNameMessage(
  8. typeName: string,
  9. valueName: string,
  10. ): string;
  11. /**
  12. * Unique enum value names
  13. *
  14. * A GraphQL enum type is only valid if all its values are uniquely named.
  15. */
  16. export function UniqueEnumValueNames(context: SDLValidationContext): ASTVisitor;