Function getCalendarsBetween

  • getCalendarsBetween(start: Date, end: Date, forceHttp?: boolean): Promise<Calendar[]>
  • Gets calendars, if available, for a given date range.

    Example

    const calendars = await getCalendarsBetween(new Date('2022-07-01'), new Date('2022-07-31'))
    

    Remarks

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

    Returns

    • when not found, returns undefined indicating the calendar is not available, e.g. 4th July 2022.

    Parameters

    • start: Date
    • end: Date
    • forceHttp: boolean = false

      bypass calendarRepository and force HTTP request

    Returns Promise<Calendar[]>

Generated using TypeDoc