dhaga.docs
API referenceFunctions

findOpenSlots()

function findOpenSlots(params): OpenSlot[];

Defined in: calendar/availability.ts:66

Open slots of durationMinutes within working hours on each local day of range, skipping any that collide with busy or start before now. Chronological, capped at maxSlots.

Parameters

params

range

TimeRange

busy

BusyInterval[]

durationMinutes

number

workingHours

WorkingHours

slotStepMinutes?

number

maxSlots?

number

utcOffsetMinutes?

number

now?

Date

Returns

OpenSlot[]

On this page