UNPKG

banking-holidays

Version:

A TypeScript package for detecting banking holidays in USA, Puerto Rico, and Dominican Republic

22 lines (21 loc) 816 B
import { Country, Holiday, HolidayOptions, HolidayResponse, DateStatus } from './types'; /** * Check if a given date is a banking holiday and its working status */ export declare function getDateStatus(date: Date | string, country: Country): DateStatus; /** * Check if a given date is a banking holiday */ export declare function isHoliday(date: Date | string, country: Country): HolidayResponse; /** * Check if a given date is a working day */ export declare function isWorkingDay(date: Date | string, country: Country): boolean; /** * Get all holidays for a given period and country */ export declare function getHolidays(options?: HolidayOptions): Holiday[]; /** * Get the next 4 years of holidays for a specific country */ export declare function getNextFourYearsHolidays(country: Country): Holiday[];