schedules working
This commit is contained in:
7
src/shared/messages/UserScheduleMessages.ts
Normal file
7
src/shared/messages/UserScheduleMessages.ts
Normal 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;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user