Type Alias: Matcher
Matcher =
boolean| (date) =>boolean|Date|Date[] |DateRange|DateBefore|DateAfter|DateInterval|DayOfWeek
Defined in: src/types/shared.ts:176
A value or a function that matches specific days.
Example
// Match weekends and specific holidays
const matcher: Matcher = [
{ dayOfWeek: [0, 6] }, // Weekends
{ from: new Date(2023, 11, 24), to: new Date(2023, 11, 26) }, // Christmas
];