@gitlab/ui
Version:
GitLab UI Components
17 lines (13 loc) • 516 B
JavaScript
// Creates out of validation configurations from .documentation.js files and creates a readable string out of it
var getValidationInfoText = function getValidationInfoText() {
var validation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
switch (validation.type) {
case 'range':
return "".concat(validation.min, "-").concat(validation.max);
default:
return '';
}
};
var validation_utils = {};
export default validation_utils;
export { getValidationInfoText };