You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
401 B
18 lines
401 B
import { GraphQLInputType } from '../type/definition';
|
|
import { GraphQLError } from '../error/GraphQLError';
|
|
|
|
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;
|