Initial Save
This commit is contained in:
14
node_modules/graphql/utilities/isValidJSValue.mjs
generated
vendored
Normal file
14
node_modules/graphql/utilities/isValidJSValue.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
import { coerceValue } from './coerceValue';
|
||||
/**
|
||||
* Deprecated. Use coerceInputValue() directly for richer information.
|
||||
*
|
||||
* This function will be removed in v15
|
||||
*/
|
||||
|
||||
export function isValidJSValue(value, type) {
|
||||
var errors = coerceValue(value, type).errors;
|
||||
return errors ? errors.map(function (error) {
|
||||
return error.message;
|
||||
}) : [];
|
||||
}
|
||||
Reference in New Issue
Block a user