@berish/validate
Version:
Validation of complex objects with support for validation maps, rules and decorators
14 lines • 403 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function isRule(rule) {
if (rule &&
typeof rule === 'function' &&
typeof rule.ruleName === 'string' &&
'isRegistered' in rule &&
'conditionSync' in rule &&
'conditionAsync' in rule)
return true;
return false;
}
exports.isRule = isRule;
//# sourceMappingURL=isRule.js.map