react-minimalistic-use-form
Version:
Minimalistic react hook for handling forms without much pain.
9 lines • 545 B
JavaScript
export var validatePlugins = function (plugins) {
if ((plugins === null || plugins === void 0 ? void 0 : plugins.scrollToError) !== undefined && typeof plugins.scrollToError !== 'function') {
throw new Error('Plugin "scrollToError" must be a type of function!');
}
if ((plugins === null || plugins === void 0 ? void 0 : plugins.validator) !== undefined && typeof plugins.validator !== 'function') {
throw new Error('Plugin "validate" must be a type of function!');
}
};
//# sourceMappingURL=validatePlugins.js.map