UNPKG

@jbouduin/holidays-lib

Version:
27 lines (26 loc) 932 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Configuration = void 0; var errors_1 = require("./errors"); var Configuration = /** @class */ (function () { //#endregion //#region Constructor & C° function Configuration(hierarchy, description) { this.hierarchy = hierarchy; this.description = description; this.errors = new Array(); this.holidays = new Array(); this.subConfigurations = new Array(); } //#endregion //#region IConfiguration interface methods Configuration.prototype.addError = function (key, location) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } this.errors.push(new errors_1.LoadError(key, location, args)); }; return Configuration; }()); exports.Configuration = Configuration;