UNPKG

@jbouduin/holidays-lib

Version:
25 lines (24 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseHoliday = void 0; var BaseHoliday = /** @class */ (function () { //#endregion //#region Constructor & C° function BaseHoliday(holidayType, key, category, cycle, validFrom, validTo) { this.holidayType = holidayType; this.key = key; this.category = category; this.cycle = cycle; this.validFrom = validFrom; this.validTo = validTo; this.moves = new Array(); } //#region Public static magic numbers // see http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.1 // undefined valid from is approx. the earliest date possible in JS BaseHoliday.undefinedValidFrom = new Date(-8640000000000000).getFullYear(); // undefined valid from is approx. the latest date possible in JS BaseHoliday.undefinedValidTo = new Date(8640000000000000).getFullYear(); return BaseHoliday; }()); exports.BaseHoliday = BaseHoliday;