Skip to content

Commit

Permalink
fix: correct properties and export planner item interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yumincho committed May 18, 2024
1 parent ccd274c commit 4b013a8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/shapes/state/planner/ItemFocus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ArbitraryPseudoCourse {
old_code: string;
}

interface NoneItem {
export interface NoneItem {
from: ItemFocusFrom.NONE;
clicked: false;
item?: null;
Expand All @@ -30,37 +30,37 @@ interface NoneItem {
lectures?: null;
}

interface ListItem {
export interface ListItem {
from: ItemFocusFrom.LIST;
clicked: boolean;
item?: null;
course?: Course | ArbitraryPseudoCourse;
category?: null;
reviews?: Review;
lectures?: Lecture;
reviews?: Review[];
lectures?: Lecture[];
}

interface AddingItem {
export interface AddingItem {
from: ItemFocusFrom.ADDING;
clicked: true;
item?: null;
course?: Course | ArbitraryPseudoCourse;
category?: null;
reviews?: Review;
lectures?: Lecture;
reviews?: Review[];
lectures?: Lecture[];
}

interface TableItem {
export interface TableItem {
from: ItemFocusFrom.TABLE_TAKEN | ItemFocusFrom.TABLE_FUTURE | ItemFocusFrom.TABLE_ARBITRARY;
clicked: boolean;
item?: TakenPlannerItem | FuturePlannerItem | ArbitraryPlannerItem;
course?: Course | ArbitraryPseudoCourse;
category?: null;
reviews?: Review;
lecture?: Lecture;
reviews?: Review[];
lecture?: Lecture[];
}

interface CategoryItem {
export interface CategoryItem {
from: ItemFocusFrom.CATEGORY;
clicked: boolean;
item?: null;
Expand Down

0 comments on commit 4b013a8

Please sign in to comment.