UNPKG

452 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ValidationContext } from '../ValidationContext';
3/**
4 * Known fragment names
5 *
6 * A GraphQL document is only valid if all `...Fragment` fragment spreads refer
7 * to fragments defined in the same document.
8 *
9 * See https://spec.graphql.org/draft/#sec-Fragment-spread-target-defined
10 */
11export declare function KnownFragmentNamesRule(
12 context: ValidationContext,
13): ASTVisitor;