UNPKG

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