@zohodesk/dot
Version:
In this Library, we Provide Some Basic Components to Build Your Application
25 lines (18 loc) • 750 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.validateAndLogError = validateAndLogError;
var _constants = require("./constants");
function validateAndLogError(_ref) {
var options = _ref.options,
value = _ref.value,
type = _ref.type;
var isError = !options.includes(value);
if (isError) {
var themeAppearances = _constants.THEME_APPEARANCES.toString();
var themeColors = _constants.THEME_COLORS.toString();
console.error("We do not support the '".concat(value, " ").concat(type, "'. Please provide valid '").concat(type, "' values or check spelling. DotProvider supports ").concat(themeAppearances, " appearance & ").concat(themeColors, " theme."));
}
return isError;
}