PossibleFragmentSpreads.d.ts 667 B

12345678910111213141516171819202122
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. export function typeIncompatibleSpreadMessage(
  4. fragName: string,
  5. parentType: string,
  6. fragType: string,
  7. ): string;
  8. export function typeIncompatibleAnonSpreadMessage(
  9. parentType: string,
  10. fragType: string,
  11. ): string;
  12. /**
  13. * Possible fragment spread
  14. *
  15. * A fragment spread is only valid if the type condition could ever possibly
  16. * be true: if there is a non-empty intersection of the possible parent types,
  17. * and possible types which pass the type condition.
  18. */
  19. export function PossibleFragmentSpreads(context: ValidationContext): ASTVisitor;