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. 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";