UNPKG

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