UniqueFragmentNames.d.ts 384 B

1234567891011
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. export function duplicateFragmentNameMessage(fragName: string): string;
  4. /**
  5. * Unique fragment names
  6. *
  7. * A GraphQL document is only valid if all defined fragments have unique names.
  8. */
  9. export function UniqueFragmentNames(context: ASTValidationContext): ASTVisitor;