@ken-all/kenall
    Preparing search index...

    Interface HolidaysOptions

    The set of options that can be passed to getHolidays.

    When year is specified, from and to are ignored and the whole year is returned. Otherwise the range designated by from and to is used.

    interface HolidaysOptions {
        from?: string;
        to?: string;
        year?: string | number;
    }
    Index
    from?: string

    The start of the range to retrieve the holidays for, inclusive, in the form of "YYYY-MM-DD".

    to?: string

    The end of the range to retrieve the holidays for, inclusive, in the form of "YYYY-MM-DD".

    year?: string | number

    The calendar year to retrieve the holidays for.

    Example: 2022