UNPKG

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