Function getCalendarFor

  • getCalendarFor(date: Date, forceHttp?: boolean): Promise<undefined | Calendar>
  • Get a calendar, if available, for a given date

    Example

    const calendar = await getCalendarFor(new Date('2022-07-01))
    

    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

    • date: Date
    • forceHttp: boolean = false

      bypass calendarRepository and force HTTP request

    Returns Promise<undefined | Calendar>

Generated using TypeDoc