UNPKG

535 BTypeScriptView Raw
1import { ValidationContext, SDLValidationContext } from "../ValidationContext";
2import { ASTVisitor } from "../../language/visitor";
3
4export function unknownDirectiveMessage(directiveName: string): string;
5
6export function misplacedDirectiveMessage(directiveName: string, location: string): string;
7
8/**
9 * Known directives
10 *
11 * A GraphQL document is only valid if all `@directives` are known by the
12 * schema and legally positioned.
13 */
14export function KnownDirectives(context: ValidationContext | SDLValidationContext): ASTVisitor;