sanctus
Version:
Generate saints of the Martyrology of the Roman Catholic Church
29 lines (28 loc) • 793 B
TypeScript
import { SaintInfo, SanctusInterface } from "./sanctus-interface.ts";
export type { SaintInfo };
export type { SanctusInterface };
export default class Sanctus implements SanctusInterface {
#private;
constructor(selectedDate?: Date);
getSaint(date?: Date): SaintInfo | undefined;
/**
* Month from 0-11
* @param month
* @param day
*/
getSaintFromMonthDay(month: number, day: number): SaintInfo | undefined;
getSaintsOfDay(date?: Date): SaintInfo[];
getAllSaints(): SaintInfo[];
setDate(date: Date): void;
getCurrentDate(): Date;
private getMonthAndDayFromDate;
/**
*
* Get saints from db of a day, shortened by category
*
* @param month
* @param day
* @private
*/
private getSaintsFromDB;
}