UNPKG

483 BTypeScriptView Raw
1import { GraphQLError } from '../error/GraphQLError';
2import { ValueNode } from '../language/ast';
3import { GraphQLInputType } from '../type/definition';
4
5/**
6 * Utility which determines if a value literal node is valid for an input type.
7 *
8 * Deprecated. Rely on validation for documents containing literal values.
9 *
10 * This function will be removed in v15
11 */
12export function isValidLiteralValue(
13 type: GraphQLInputType,
14 valueNode: ValueNode,
15): ReadonlyArray<GraphQLError>;