UNPKG

519 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type {
3 SDLValidationContext,
4 ValidationContext,
5} from '../ValidationContext';
6/**
7 * Known type names
8 *
9 * A GraphQL document is only valid if referenced types (specifically
10 * variable definitions and fragment conditions) are defined by the type schema.
11 *
12 * See https://spec.graphql.org/draft/#sec-Fragment-Spread-Type-Existence
13 */
14export declare function KnownTypeNamesRule(
15 context: ValidationContext | SDLValidationContext,
16): ASTVisitor;