function getNextBookableDate
getNextBookableDate(
event: Event,
holidays: Holiday[],
): string | null

Get the next available booking date for a daily event. More efficient than getAvailableDates()[0] — stops at first match. Returns null if no bookable dates are available.

Parameters

event: Event
holidays: Holiday[]

Return Type

string | null

Usage

import { getNextBookableDate } from "docs/events.ts";