Cleanup
This commit is contained in:
parent
69495ce00f
commit
e838719d46
3 changed files with 4 additions and 122 deletions
|
|
@ -1,40 +1,10 @@
|
|||
/**
|
||||
* Type definitions for calendar events
|
||||
* Type definitions for calendar events and drag operations
|
||||
*/
|
||||
|
||||
import { ColumnBounds } from "../utils/ColumnDetectionUtils";
|
||||
import { CalendarEvent } from "./CalendarTypes";
|
||||
|
||||
export interface AllDayEvent {
|
||||
id: string;
|
||||
title: string;
|
||||
start: Date | string;
|
||||
end: Date | string;
|
||||
allDay: true;
|
||||
color?: string;
|
||||
metadata?: {
|
||||
color?: string;
|
||||
category?: string;
|
||||
location?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface TimeEvent {
|
||||
id: string;
|
||||
title: string;
|
||||
start: Date | string;
|
||||
end: Date | string;
|
||||
allDay?: false;
|
||||
color?: string;
|
||||
metadata?: {
|
||||
color?: string;
|
||||
category?: string;
|
||||
location?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export type CalendarEventData = AllDayEvent | TimeEvent;
|
||||
|
||||
/**
|
||||
* Drag Event Payload Interfaces
|
||||
* Type-safe interfaces for drag and drop events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue