Skip to main content

Types

AvailableTimeslot

type AvailableTimeslot = {
startTime: Date;
endTime: Date;
id?: string | number | undefined;
};

StartTimeEventEmit

type StartTimeEventEmit = {
availableTimeslot: AvailableTimeslot;
startTime: Date;
splitTimeslot?: [SplitTimeslot, SplitTimeslot];
resetDate: () => void;
resetSelectedTimeState: () => void;
};

SplitTimeslot

type SplitTimeslot = null | ModifiedTimeslot;

type ModifiedTimeslot = AvailableTimeslot & {
oldId: string | number | undefined;
};