UNPKG

@kiwicredito/banking-holidays

Version:

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

26 lines (25 loc) 612 B
export type Country = 'USA' | 'PR' | 'RD'; export interface CountryConfig { timezone: string; name: string; } export declare const COUNTRY_CONFIG: Record<Country, CountryConfig>; export interface Holiday { name: string; date: string; country: Country; type: 'federal' | 'regional' | 'banking'; } export interface HolidayResponse { isHoliday: boolean; holiday?: Holiday; } export interface DateStatus extends HolidayResponse { isWorkingDay: boolean; isWeekend: boolean; } export interface HolidayOptions { country?: Country; startDate?: Date; endDate?: Date; }