mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
18 lines
401 B
TypeScript
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;
|