Swap-Aggregator-Subgraph/node_modules/graphql/utilities/coerceInputValue.d.ts
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

18 lines
401 B
TypeScript

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;