Skip to content

DayEnricher

Day enricher interface - plugins implement this to add data to days

// Lunar plugin enricher
const lunarEnricher: DayEnricher = {
name: 'lunar',
priority: 10,
enrich: (day) => ({
...day,
lunarDate: solarToLunar(day.year, day.month, day.day)
})
};

enrich: (day) => CalendarDay<any, any>

Enrich a day with additional data

CalendarDay<any, any>

CalendarDay<any, any>


name: string

Unique name for this enricher


priority: number

Priority order (lower runs first, default: 100)