PossibleFragmentSpreadsRule.d.ts 450 B

12345678910111213
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext } from '../ValidationContext';
  3. /**
  4. * Possible fragment spread
  5. *
  6. * A fragment spread is only valid if the type condition could ever possibly
  7. * be true: if there is a non-empty intersection of the possible parent types,
  8. * and possible types which pass the type condition.
  9. */
  10. export function PossibleFragmentSpreadsRule(
  11. context: ValidationContext,
  12. ): ASTVisitor;