Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GetSlots

Hierarchy

  • GetSlots

Index

Properties

allDates: string[]

An array of dates, including unavailable ones, between the from and to configuration variables. Use this to allow users to specify their own datetime, but within your chosen bounds.

allSlots: OutputSlot[]

An array of all generated slots. Only use this as a starting point for manipulating the output.

allSlotsByDay: Record<string, OutputSlot[]>

Once a user has selected a date, use this object to easily find all the slots for that day.

availableDates: string[]

An array of available dates. Use this to mark on a calendar which dates can be selected.

availableSlots: OutputSlot[]

An array of available slots. Only use this as a starting point for manipulating the output.

availableSlotsByDay: Record<string, OutputSlot[]>

Once a user has selected a date, use this object to easily find the available slots for that day.

timeTaken: string

Worried that the number crunching is slowing down your app? Monitor this variable to see the time taken by slot calculator.

Generated using TypeDoc