@react-form-builder/core
Version:
React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required
16 lines (15 loc) • 385 B
JavaScript
function u() {
return {
params: [],
withParameter(r, t, e = !1, a, i) {
return this.params.push({ key: r, type: t ?? "string", required: e, default: a, editorType: i }), this;
},
withValidatorFactory(r) {
return { ...this, validatorFactory: r };
}
}.withParameter("message");
}
export {
u as ruleBuilder
};
//# sourceMappingURL=ruleBuilder.js.map