mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
344 B
TypeScript
12 lines
344 B
TypeScript
import { GraphQLInputType } from '../type/definition';
|
|
|
|
/**
|
|
* Given a JavaScript value and a GraphQL type, determine if the value will be
|
|
* accepted for that type. This is primarily useful for validating the
|
|
* runtime values of query variables.
|
|
*/
|
|
export function isValidJSValue(
|
|
value: any,
|
|
type: GraphQLInputType
|
|
): Array<string>
|