Function getPreviousCalendar

  • getPreviousCalendar(date??: Date, forceHttp?: boolean): Promise<Calendar>
  • Get the previous calendar

    Example

    const calendar = await getPreviousCalendar()
    

    Remarks

    If an CalendarRepository is provided, and no Calendar is found, the function WILL NOT fall back to HTTP.

    Returns

    • should always return a valid date.

    Throws

    • when no calendar is found throws 'Expected to find a previous calendar, but nothing was found' error.

    Parameters

    • Optional date: Date = ...

      if not provided, the current date is used

    • forceHttp: boolean = false

      bypass calendarRepository and force HTTP request

    Returns Promise<Calendar>

Generated using TypeDoc