graphql
Version:
A Query Language and Runtime which can target any service.
13 lines (11 loc) • 420 B
TypeScript
import { ASTVisitor } from '../../language/visitor';
import { ValidationContext, SDLValidationContext } from '../ValidationContext';
/**
* Known type names
*
* A GraphQL document is only valid if referenced types (specifically
* variable definitions and fragment conditions) are defined by the type schema.
*/
export function KnownTypeNamesRule(
context: ValidationContext | SDLValidationContext,
): ASTVisitor;