UNPKG

644 BTypeScriptView Raw
1import { ValidationContext } from "../ValidationContext";
2import { ASTVisitor } from "../../language/visitor";
3
4export function badValueMessage(typeName: string, valueName: string, message?: string): string;
5
6export function requiredFieldMessage(typeName: string, fieldName: string, fieldTypeName: string): string;
7
8export function unknownFieldMessage(typeName: string, fieldName: string, message?: string): string;
9
10/**
11 * Value literals of correct type
12 *
13 * A GraphQL document is only valid if all value literals are of the type
14 * expected at their position.
15 */
16export function ValuesOfCorrectType(context: ValidationContext): ASTVisitor;