KnownFragmentNames.d.ts 416 B

123456789101112
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. export function unknownFragmentMessage(fragName: string): string;
  4. /**
  5. * Known fragment names
  6. *
  7. * A GraphQL document is only valid if all `...Fragment` fragment spreads refer
  8. * to fragments defined in the same document.
  9. */
  10. export function KnownFragmentNames(context: ValidationContext): ASTVisitor;