PossibleFragmentSpreadsRule.d.ts 467 B

123456789101112
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import type { 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 declare function PossibleFragmentSpreadsRule(
  11. context: ValidationContext,
  12. ): ASTVisitor;