Files
Job_App/node_modules/graphql/utilities/isValidJSValue.mjs
2025-03-28 12:30:19 +11:00

15 lines
376 B
JavaScript

/* 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;
}) : [];
}