iplr
Version:
Node package for IPLR.
37 lines (28 loc) • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
var BaseClass = /*#__PURE__*/function () {
function BaseClass() {
_classCallCheck(this, BaseClass);
this.matches = [];
this.innings = [];
}
_createClass(BaseClass, [{
key: "addMatch",
value: function addMatch(match) {
this.matches.push(match);
}
}, {
key: "addInning",
value: function addInning(inning) {
this.innings.push(inning);
}
}]);
return BaseClass;
}();
exports.default = BaseClass;