From f9a415d587c07d16731564195fddf5d536799f8e Mon Sep 17 00:00:00 2001 From: Yumin Cho Date: Thu, 14 Mar 2024 14:48:47 +0900 Subject: [PATCH 1/3] fix: update wrong prop of `Lecture` interface --- src/shapes/model/subject/Lecture.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/model/subject/Lecture.ts b/src/shapes/model/subject/Lecture.ts index c9eeea3..32cbe81 100644 --- a/src/shapes/model/subject/Lecture.ts +++ b/src/shapes/model/subject/Lecture.ts @@ -31,7 +31,7 @@ export default interface Lecture { class_title: string; class_title_en: string; review_total_weight: number; - professors: NestedProfessor; + professors: NestedProfessor[]; grade: number; load: number; speech: number; From 0ab85d410d670d8d2f4f978b36110d4c7ba4f44b Mon Sep 17 00:00:00 2001 From: Yumin Cho Date: Thu, 14 Mar 2024 14:56:16 +0900 Subject: [PATCH 2/3] chore: change to const enum --- src/shapes/enum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/enum.ts b/src/shapes/enum.ts index 5794390..a66a272 100644 --- a/src/shapes/enum.ts +++ b/src/shapes/enum.ts @@ -1,4 +1,4 @@ -export enum AdditionalTrackType { +export const enum AdditionalTrackType { DOUBLE, MINOR, ADVANCED, From cb42ed1e5feb1b73dd2bda1b3724f44fe667fcef Mon Sep 17 00:00:00 2001 From: Yumin Cho Date: Thu, 14 Mar 2024 14:57:45 +0900 Subject: [PATCH 3/3] chore: remove unnecessary newline --- src/shapes/state/planner/ItemFocus.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shapes/state/planner/ItemFocus.ts b/src/shapes/state/planner/ItemFocus.ts index d384593..e9fc116 100644 --- a/src/shapes/state/planner/ItemFocus.ts +++ b/src/shapes/state/planner/ItemFocus.ts @@ -1,5 +1,4 @@ import type { ItemFocusFrom } from '@/shapes/enum'; - import type Course from '@/shapes/model/subject/Course'; import type Department from '@/shapes/model/subject/Department'; import type FuturePlannerItem from '@/shapes/model/planner/FuturePlannerItem';