Function getNextCalendar

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

    Example

    const calendar = await getNextCalendar()
    

    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 next 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