Initial Save
This commit is contained in:
17
node_modules/graphql/utilities/coerceInputValue.d.ts
generated
vendored
Normal file
17
node_modules/graphql/utilities/coerceInputValue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user