Skip to content

Commit

Permalink
fix: typescript errors (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0nia authored Dec 2, 2023
1 parent 5ff5824 commit b928fb8
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions apps/antalmanac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"@types/react-dom": "^18.0.10",
"@types/react-input-mask": "^3.0.2",
"@types/react-lazyload": "^3.2.0",
"@types/ua-parser-js": "^0.7.39",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vitejs/plugin-react": "^4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion apps/antalmanac/src/actions/AppStoreActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { VariantType } from 'notistack';
import { TRPCError } from '@trpc/server';
import { WebsocSection } from 'peterportal-api-next-types';
import { ScheduleCourse } from '@packages/antalmanac-types';
import { RepeatingCustomEvent } from '@packages/antalmanac-types';
import { SnackbarPosition } from '$components/NotificationSnackbar';
import { RepeatingCustomEvent } from '$components/Calendar/Toolbar/CustomEventDialog/CustomEventDialog';
import analyticsEnum, { logAnalytics } from '$lib/analytics';
import { warnMultipleTerms } from '$lib/helpers';
import { CourseDetails } from '$lib/course_data.types';
Expand Down
2 changes: 1 addition & 1 deletion apps/antalmanac/src/lib/zotcourse.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RepeatingCustomEvent } from '@packages/antalmanac-types';
import trpc from './api/trpc';
import { RepeatingCustomEvent } from '$components/Calendar/Toolbar/CustomEventDialog/CustomEventDialog';
import AppStore from '$stores/AppStore';

export interface ZotCourseResponse {
Expand Down
3 changes: 1 addition & 2 deletions apps/antalmanac/src/stores/AppStore.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { EventEmitter } from 'events';
import { VariantType } from 'notistack';

import { ScheduleCourse, ScheduleSaveState } from '@packages/antalmanac-types';
import { ScheduleCourse, ScheduleSaveState, RepeatingCustomEvent } from '@packages/antalmanac-types';
import { Schedules } from './Schedules';
import { SnackbarPosition } from '$components/NotificationSnackbar';
import { CalendarEvent, CourseEvent } from '$components/Calendar/CourseCalendarEvent';
import { RepeatingCustomEvent } from '$components/Calendar/Toolbar/CustomEventDialog/CustomEventDialog';
import { useTabStore } from '$stores/TabStore';

class AppStore extends EventEmitter {
Expand Down
2 changes: 1 addition & 1 deletion apps/antalmanac/src/stores/Schedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
ScheduleSaveState,
ScheduleUndoState,
ShortCourseSchedule,
RepeatingCustomEvent,
} from '@packages/antalmanac-types';
import { calendarizeCourseEvents, calendarizeCustomEvents, calendarizeFinals } from './calendarizeHelpers';
import { RepeatingCustomEvent } from '$components/Calendar/Toolbar/CustomEventDialog/CustomEventDialog';
import type { CourseInfo } from '$lib/course_data.types';
import { getColorForNewSection } from '$stores/scheduleHelpers';
import WebSOC from '$lib/websoc';
Expand Down
2 changes: 1 addition & 1 deletion apps/antalmanac/src/stores/calendarizeHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ScheduleCourse } from '@packages/antalmanac-types';
import { HourMinute } from 'peterportal-api-next-types';
import { RepeatingCustomEvent } from '@packages/antalmanac-types';
import { CourseEvent, CustomEvent, Location } from '$components/Calendar/CourseCalendarEvent';
import { RepeatingCustomEvent } from '$components/Calendar/Toolbar/CustomEventDialog/CustomEventDialog';
import { notNull, getReferencesOccurring } from '$lib/utils';

export const COURSE_WEEK_DAYS = ['Su', 'M', 'Tu', 'W', 'Th', 'F', 'Sa'];
Expand Down
3 changes: 1 addition & 2 deletions apps/antalmanac/tests/calendarize-helpers.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { describe, test, expect } from 'vitest';
import type { Schedule } from '@packages/antalmanac-types';
import type { RepeatingCustomEvent } from '$components/Calendar/Toolbar/CustomEventDialog/CustomEventDialog';
import type { Schedule, RepeatingCustomEvent } from '@packages/antalmanac-types';
import { calendarizeCourseEvents, calendarizeCustomEvents, calendarizeFinals } from '$stores/calendarizeHelpers';
import type { CourseEvent, CustomEvent } from '$components/Calendar/CourseCalendarEvent';

Expand Down
2 changes: 0 additions & 2 deletions apps/antalmanac/tests/download-ics.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { EventAttributes } from 'ics';
import type { Schedule } from '@packages/antalmanac-types';
import { describe, test, expect } from 'vitest';
import { getEventsFromCourses } from '$lib/download';
import { CalendarEvent } from '$components/Calendar/CourseCalendarEvent';
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b928fb8

Please sign in to comment.