Skip to main content
Latest
File
import { GraphQLInputType } from '../type/definition.d.ts';import { GraphQLError } from '../error/GraphQLError.d.ts';
type OnErrorCB = ( path: ReadonlyArray<string | number>, invalidValue: any, error: GraphQLError,) => void;
/** * Coerces a JavaScript value given a GraphQL Input Type. */export function coerceInputValue( inputValue: any, type: GraphQLInputType, onError?: OnErrorCB,): any;