function storedBookingSpan
storedBookingSpan(
date: string,
endDate: string | null,
): { lastDay: DateString | null; start: DateString; }

The stored [date, endDate) booking's start and exclusive end day. The end is one day before the stored exclusive end; with no end stored the span covers only the start day. A stored date the rule refuses stops the request loudly.

Parameters

date: string
endDate: string | null

Return Type

{ lastDay: DateString | null; start: DateString; }

Usage

import { storedBookingSpan } from "doc.ts";