UNPKG

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