UNPKG

@jbouduin/holidays-lib

Version:
39 lines (38 loc) 1.85 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.IslamicHolidayCalculator = void 0; var base_calculator_1 = require("./base-calculator"); var IslamicHolidayCalculator = /** @class */ (function (_super) { __extends(IslamicHolidayCalculator, _super); //#region Constructor function IslamicHolidayCalculator() { return _super.call(this) || this; } //#endregion //#region Abstract method implementation // eslint-disable-next-line @typescript-eslint/no-unused-vars IslamicHolidayCalculator.prototype.calculateDate = function (holiday, year) { return undefined; // calculate hijri date of january, 1. // calculate hijri date of december, 31 // calculate the hijri date of the requested holiday for both years // convert them to gregorian calender and return the one that suits the requested year }; return IslamicHolidayCalculator; }(base_calculator_1.BaseCalculator)); exports.IslamicHolidayCalculator = IslamicHolidayCalculator;