Files
cal.diy/packages/types/schedule.d.ts
T
Carina WollendorferandCarinaWolli 20c010fef1
release.yml / release (push) Canceled after 0s
Revert "Date override fixes (#8330)" (#8369)
This reverts commit 3ef328421f.

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
2023-04-19 08:43:08 +00:00

21 lines
527 B
TypeScript

export type TimeRange = {
userId?: number | null;
start: Date;
end: Date;
};
export type Schedule = TimeRange[][];
/**
* ```text
* Ensure startTime and endTime in minutes since midnight; serialized to UTC by using the organizer timeZone, either by using the schedule timeZone or the user timeZone.
* @see lib/availability.ts getWorkingHours(timeZone: string, availability: Availability[])
* ```
*/
export type WorkingHours = {
days: number[];
startTime: number;
endTime: number;
userId?: number | null;
};