"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SetRules_1 = require("./SetRules");
var SetRulesForVoter;
(function (SetRulesForVoter) {
    /**
     * This is an TS 1.6+ TypeGuard as described here: https://www.typescriptlang.org/docs/handbook/advanced-types.html
     */
    function isSetRulesForVoter(o) {
        return SetRules_1.SetRules.isSetRules(o)
            && o.voter !== undefined;
    }
    SetRulesForVoter.isSetRulesForVoter = isSetRulesForVoter;
    function validateSetRulesForVoter(o) {
        return isSetRulesForVoter(o)
            && o.voter.length > 0
            && SetRules_1.SetRules.validateSetRules(o);
    }
    SetRulesForVoter.validateSetRulesForVoter = validateSetRulesForVoter;
})(SetRulesForVoter = exports.SetRulesForVoter || (exports.SetRulesForVoter = {}));
//# sourceMappingURL=SetRulesForVoter.js.map