basic structure for using modules in stores and convert to TS

This commit is contained in:
2022-06-20 09:49:53 +02:00
parent 6c4f116e85
commit 8c99fc0089
16 changed files with 457 additions and 93 deletions

View File

@@ -0,0 +1,5 @@
export function whoami(): import('ChillCalendarAssets/types').User;
export function fetchCalendarRangeForUser(user: import('ChillCalendarAssets/types').User, start: Date, end: Date): import('ChillCalendarAssets/types').CalendarRange[];
export function fetchCalendarRemoteForUser(user: import('ChillCalendarAssets/types').User, start: Date, end: Date): import('ChillCalendarAssets/types').Calendar[];

View File

@@ -0,0 +1,2 @@
export function calendarRangeToFullCalendarEvent(entity: import('ChillCalendarAssets/types').CalendarRange): import('@fullcalendar/vue3').EventInput;

View File

@@ -50,6 +50,7 @@ const createUserData = (user, colorIndex) => {
}
}
// TODO move this function to a more global namespace, as it is in use in MyCalendarRange app
const calendarRangeToFullCalendarEvent = (entity) => {
return {
id: `range_${entity.id}`,