schedules working

This commit is contained in:
Sriram Hariharan
2023-03-16 00:32:10 -05:00
parent 6afd372945
commit 882b5b4e00
13 changed files with 125 additions and 38 deletions

View File

@@ -0,0 +1,7 @@
import { Course } from '../types/Course';
export interface UserScheduleMessages {
addCourse: (data: { scheduleId: string; course: Course }) => void;
removeCourse: (data: { scheduleId: string; course: Course }) => void;
}

View File

@@ -3,11 +3,15 @@ import TAB_MESSAGES from './TabMessages';
import BrowserActionMessages from './BrowserActionMessages';
import HotReloadingMessages from './HotReloadingMessages';
import TabManagementMessages from './TabManagementMessages';
import { UserScheduleMessages } from './UserScheduleMessages';
/**
* This is a type with all the message definitions that can be sent TO the background script
*/
export type BACKGROUND_MESSAGES = BrowserActionMessages & TabManagementMessages & HotReloadingMessages;
export type BACKGROUND_MESSAGES = BrowserActionMessages &
TabManagementMessages &
HotReloadingMessages &
UserScheduleMessages;
/**
* A utility object that can be used to send type-safe messages to the background script