Initial Save
This commit is contained in:
22
node_modules/graphql/utilities/isValidJSValue.js
generated
vendored
Normal file
22
node_modules/graphql/utilities/isValidJSValue.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.isValidJSValue = isValidJSValue;
|
||||
|
||||
var _coerceValue = require("./coerceValue");
|
||||
|
||||
/* istanbul ignore file */
|
||||
|
||||
/**
|
||||
* Deprecated. Use coerceInputValue() directly for richer information.
|
||||
*
|
||||
* This function will be removed in v15
|
||||
*/
|
||||
function isValidJSValue(value, type) {
|
||||
var errors = (0, _coerceValue.coerceValue)(value, type).errors;
|
||||
return errors ? errors.map(function (error) {
|
||||
return error.message;
|
||||
}) : [];
|
||||
}
|
||||
Reference in New Issue
Block a user