UniqueFieldDefinitionNames.d.ts 539 B

123456789101112131415161718192021
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { SDLValidationContext } from '../ValidationContext';
  3. export function duplicateFieldDefinitionNameMessage(
  4. typeName: string,
  5. fieldName: string,
  6. ): string;
  7. export function existedFieldDefinitionNameMessage(
  8. typeName: string,
  9. fieldName: string,
  10. ): string;
  11. /**
  12. * Unique field definition names
  13. *
  14. * A GraphQL complex type is only valid if all its fields are uniquely named.
  15. */
  16. export function UniqueFieldDefinitionNames(
  17. context: SDLValidationContext,
  18. ): ASTVisitor;