colombian-holidays
Version:
25 lines (24 loc) • 1.02 kB
TypeScript
import { ColombianHoliday, ColombianHolidayWithNativeDate } from "./types";
export declare const FIRST_HOLIDAY_YEAR = 1583;
export declare const LAST_HOLIDAY_YEAR = 4099;
type MonthNumbers = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
export type Month = MonthNumbers | Omit<number, MonthNumbers>;
export declare function colombianHolidays(options?: undefined | {
year?: number;
month?: Month;
valueAsDate: false | undefined;
}): ColombianHoliday[];
export declare function colombianHolidays(options?: {
year?: number;
month?: Month;
valueAsDate: true;
}): ColombianHolidayWithNativeDate[];
export declare function colombianHolidays(options?: {
year?: number;
month?: Month;
valueAsDate?: boolean;
}): ColombianHoliday[] | ColombianHolidayWithNativeDate[];
export default colombianHolidays;
export { getHolidaysForYear } from "./utils/getHolidaysByYear";
export { isHoliday } from "./utils/isHoliday";
export { holidaysWithinInterval } from "./utils/holidaysWithinInterval";