@data-driven-forms/react-form-renderer
Version:
React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.
14 lines • 663 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var component_types_1 = __importDefault(require("../component-types"));
var isSpecialType = function (componentType) {
return componentType === component_types_1.default.CHECKBOX || componentType === component_types_1.default.RADIO;
};
var assignSpecialType = function (componentType) {
return isSpecialType(componentType) ? componentType : undefined;
};
exports.default = assignSpecialType;
//# sourceMappingURL=assign-special-type.js.map