function getBookableStartDates
getBookableStartDates(
listing: Listing,
holidays: Holiday[],
): string[]

Available start dates for a daily listing's booking/date pickers. Customisable-days listings use single-day availability — the span is chosen separately and validated at submit time — so every individually-bookable start is offered; other listings use their fixed duration.

Parameters

listing: Listing
holidays: Holiday[]

Return Type

string[]

Usage

import { getBookableStartDates } from "docs/listings.ts";