Skip to content

calendarOf

function calendarOf(context?): CalendarBackend;

Defined in: packages/engine/src/calendar/DateCalendar.ts:139

The backend a plugin function or converter should compute with: the one on its execution context, or the Date backend when the handler was called with no context (a direct call from a test, or an as converter invoked outside the VM).

ParameterTypeDescription
context?{ calendar?: CalendarBackend; }The execution context the handler received, if any.
context.calendar?CalendarBackend-

CalendarBackend

The engine’s backend when the context carries one, else DATE_CALENDAR.