UNPKG

617 BTypeScriptView Raw
1import { ValidationContext } from "../ValidationContext";
2import { ASTVisitor } from "../../language/visitor";
3
4export function inlineFragmentOnNonCompositeErrorMessage(type: string): string;
5
6export function fragmentOnNonCompositeErrorMessage(fragName: string, type: string): string;
7
8/**
9 * Fragments on composite type
10 *
11 * Fragments use a type condition to determine if they apply, since fragments
12 * can only be spread into a composite type (object, interface, or union), the
13 * type condition must also be a composite type.
14 */
15export function FragmentsOnCompositeTypes(context: ValidationContext): ASTVisitor;