UNPKG

544 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ValidationContext } from '../ValidationContext';
3/**
4 * Fragments on composite type
5 *
6 * Fragments use a type condition to determine if they apply, since fragments
7 * can only be spread into a composite type (object, interface, or union), the
8 * type condition must also be a composite type.
9 *
10 * See https://spec.graphql.org/draft/#sec-Fragments-On-Composite-Types
11 */
12export declare function FragmentsOnCompositeTypesRule(
13 context: ValidationContext,
14): ASTVisitor;