12345678910111213141516171819202122 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.isValidJSValue = isValidJSValue;
- var _coerceValue = require("./coerceValue");
- function isValidJSValue(value, type) {
- var errors = (0, _coerceValue.coerceValue)(value, type).errors;
- return errors ? errors.map(function (error) {
- return error.message;
- }) : [];
- }
|