@demark-pro/react-booking-calendar
Version:
A responsive customizable React Booking calendar with overbooking protection
7 lines (6 loc) • 352 B
TypeScript
import { CalendarDayState, CalendarSelected, CommonProps, OverbookTypes } from "types";
export type GetProtectedIntervalReturn = {
interval: CalendarSelected[] | null;
overbookType: OverbookTypes | null;
};
export declare function getProtectedInterval(date: Date, state: CalendarDayState, commonProps: CommonProps): GetProtectedIntervalReturn;