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.
17 lines
443 B
17 lines
443 B
4 months ago
|
import { GraphQLError } from '../error/GraphQLError';
|
||
|
import type { GraphQLInputType } from '../type/definition';
|
||
|
declare type OnErrorCB = (
|
||
|
path: ReadonlyArray<string | number>,
|
||
|
invalidValue: unknown,
|
||
|
error: GraphQLError,
|
||
|
) => void;
|
||
|
/**
|
||
|
* Coerces a JavaScript value given a GraphQL Input Type.
|
||
|
*/
|
||
|
export declare function coerceInputValue(
|
||
|
inputValue: unknown,
|
||
|
type: GraphQLInputType,
|
||
|
onError?: OnErrorCB,
|
||
|
): unknown;
|
||
|
export {};
|