@hyunbinseo/holidays-kr
Version:
South Korea's national holidays, based on the official gazette
17 lines (14 loc) • 3.37 kB
text/typescript
declare const y2018: Readonly<Record<"2018-01-01" | "2018-02-15" | "2018-02-16" | "2018-02-17" | "2018-03-01" | "2018-05-05" | "2018-05-07" | "2018-05-22" | "2018-06-06" | "2018-06-13" | "2018-08-15" | "2018-09-23" | "2018-09-24" | "2018-09-25" | "2018-09-26" | "2018-10-03" | "2018-10-09" | "2018-12-25", readonly string[]>>;
declare const y2019: Readonly<Record<"2019-01-01" | "2019-02-04" | "2019-02-05" | "2019-02-06" | "2019-03-01" | "2019-05-05" | "2019-05-06" | "2019-05-12" | "2019-06-06" | "2019-08-15" | "2019-09-12" | "2019-09-13" | "2019-09-14" | "2019-10-03" | "2019-10-09" | "2019-12-25", readonly string[]>>;
declare const y2020: Readonly<Record<"2020-01-01" | "2020-01-24" | "2020-01-25" | "2020-01-26" | "2020-01-27" | "2020-03-01" | "2020-04-15" | "2020-04-30" | "2020-05-05" | "2020-06-06" | "2020-08-15" | "2020-08-17" | "2020-09-30" | "2020-10-01" | "2020-10-02" | "2020-10-03" | "2020-10-09" | "2020-12-25", readonly string[]>>;
declare const y2021: Readonly<Record<"2021-01-01" | "2021-02-11" | "2021-02-12" | "2021-02-13" | "2021-03-01" | "2021-05-05" | "2021-05-19" | "2021-06-06" | "2021-08-15" | "2021-08-16" | "2021-09-20" | "2021-09-21" | "2021-09-22" | "2021-10-03" | "2021-10-04" | "2021-10-09" | "2021-10-11" | "2021-12-25", readonly string[]>>;
declare const y2022: Readonly<Record<"2022-01-01" | "2022-01-31" | "2022-02-01" | "2022-02-02" | "2022-03-01" | "2022-03-09" | "2022-05-05" | "2022-05-08" | "2022-06-01" | "2022-06-06" | "2022-08-15" | "2022-09-09" | "2022-09-10" | "2022-09-11" | "2022-09-12" | "2022-10-03" | "2022-10-09" | "2022-10-10" | "2022-12-25", readonly string[]>>;
declare const y2023: Readonly<Record<"2023-01-01" | "2023-01-21" | "2023-01-22" | "2023-01-23" | "2023-01-24" | "2023-03-01" | "2023-05-05" | "2023-05-27" | "2023-05-29" | "2023-06-06" | "2023-08-15" | "2023-09-28" | "2023-09-29" | "2023-09-30" | "2023-10-02" | "2023-10-03" | "2023-10-09" | "2023-12-25", readonly string[]>>;
declare const y2024: Readonly<Record<"2024-01-01" | "2024-02-09" | "2024-02-10" | "2024-02-11" | "2024-02-12" | "2024-03-01" | "2024-04-10" | "2024-05-05" | "2024-05-06" | "2024-05-15" | "2024-06-06" | "2024-08-15" | "2024-09-16" | "2024-09-17" | "2024-09-18" | "2024-10-01" | "2024-10-03" | "2024-10-09" | "2024-12-25", readonly string[]>>;
declare const y2025: Readonly<Record<"2025-01-01" | "2025-01-27" | "2025-01-28" | "2025-01-29" | "2025-01-30" | "2025-03-01" | "2025-03-03" | "2025-05-05" | "2025-05-06" | "2025-06-03" | "2025-06-06" | "2025-08-15" | "2025-10-03" | "2025-10-05" | "2025-10-06" | "2025-10-07" | "2025-10-08" | "2025-10-09" | "2025-12-25", readonly string[]>>;
declare const y2026: Readonly<Record<"2026-01-01" | "2026-02-16" | "2026-02-17" | "2026-02-18" | "2026-03-01" | "2026-03-02" | "2026-05-05" | "2026-05-24" | "2026-05-25" | "2026-06-03" | "2026-06-06" | "2026-08-15" | "2026-08-17" | "2026-09-24" | "2026-09-25" | "2026-09-26" | "2026-10-03" | "2026-10-05" | "2026-10-09" | "2026-12-25", readonly string[]>>;
declare const getHolidayNames: (date: Date) => readonly string[] | null;
declare const getHolidayNamesE: (date: Date) => readonly string[] | null;
declare const isHoliday: (date: Date) => boolean;
declare const isHolidayE: (date: Date) => boolean;
export { getHolidayNames, getHolidayNamesE, isHoliday, isHolidayE, y2018, y2019, y2020, y2021, y2022, y2023, y2024, y2025, y2026 };