Major refactor into type safe TS

With a risk oof rolling it all back
This commit is contained in:
Janus C. H. Knudsen 2025-09-23 20:44:15 +02:00
parent c08fa02c29
commit 48d1fd681c
19 changed files with 449 additions and 81 deletions

View file

@ -1,3 +1,5 @@
import { CalendarEvent } from '../types/CalendarTypes';
/**
* Base interface for all managers
*/
@ -23,8 +25,8 @@ export interface IManager {
*/
export interface IEventManager extends IManager {
loadData(): Promise<void>;
getEvents(): any[];
getEventsForPeriod(startDate: Date, endDate: Date): any[];
getEvents(): CalendarEvent[];
getEventsForPeriod(startDate: Date, endDate: Date): CalendarEvent[];
}
/**