UNPKG

visiting-hours

Version:

An advanced, feature rich, optimised and tiny visiting-hours library.

23 lines (22 loc) 989 B
import type { IndexedHoursInterface } from './Interface/IndexedHoursInterface'; import type { DateInputInterface } from './Interface/DateInputInterface'; import type { HourMatchInterface } from './Interface/HourMatchInterface'; import type { HoursIndexConfigInterface } from './Interface/HoursIndexConfigInterface'; import type { HoursQuery } from './HoursQuery'; interface DateKeysInterface { specialDate: IndexedHoursInterface | null; leapYearDate: IndexedHoursInterface | null; postLeapYearDate: IndexedHoursInterface | null; regularDate: IndexedHoursInterface | null; } export declare class HoursIndex { private index?; private specialIndex?; constructor({ regularIndex, specialIndex }: HoursIndexConfigInterface); dateKeys(date: DateInputInterface): DateKeysInterface; checkSpecialDay(query: HoursQuery): HourMatchInterface | void; checkDay(query: HoursQuery): HourMatchInterface; private findHour; private makeHourResult; } export {};