DayEnricher
Day enricher interface - plugins implement this to add data to days
Example
Section titled “Example”// Lunar plugin enricherconst lunarEnricher: DayEnricher = { name: 'lunar', priority: 10, enrich: (day) => ({ ...day, lunarDate: solarToLunar(day.year, day.month, day.day) })};Properties
Section titled “Properties”enrich
Section titled “enrich”enrich: (
day) =>CalendarDay<any,any>
Enrich a day with additional data
Parameters
Section titled “Parameters”CalendarDay<any, any>
Returns
Section titled “Returns”CalendarDay<any, any>
name:
string
Unique name for this enricher
priority
Section titled “priority”priority:
number
Priority order (lower runs first, default: 100)