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).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context? | { calendar?: CalendarBackend; } | The execution context the handler received, if any. |
context.calendar? | CalendarBackend | - |
Returns
Section titled “Returns”The engine’s backend when the context carries one, else DATE_CALENDAR.