-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: type issues by using correct import #111
fix: type issues by using correct import #111
Conversation
Your pull request title did not conform to conventional commits standards. Our upcoming automated release pipeline will automatically determine
|
1 similar comment
Your pull request title did not conform to conventional commits standards. Our upcoming automated release pipeline will automatically determine
|
Your pull request title did not conform to conventional commits standards. Our upcoming automated release pipeline will automatically determine
|
import AutoLoad from '@views/components/injected/AutoLoad/AutoLoad'; | ||
import CourseCatalogInjectedPopup from '@views/components/injected/CourseCatalogInjectedPopup/CourseCatalogInjectedPopup'; | ||
import RecruitmentBanner from '@views/components/injected/RecruitmentBanner/RecruitmentBanner'; | ||
import TableHead from '@views/components/injected/TableHead'; | ||
import TableRow from '@views/components/injected/TableRow/TableRow'; | ||
import TableSubheading from '@views/components/injected/TableSubheading/TableSubheading'; | ||
import { useKeyPress } from '@views/hooks/useKeyPress'; | ||
import useSchedules from '@views/hooks/useSchedules'; | ||
import { CourseCatalogScraper } from '@views/lib/CourseCatalogScraper'; | ||
import getCourseTableRows from '@views/lib/getCourseTableRows'; | ||
import type { SiteSupportType } from '@views/lib/getSiteSupport'; | ||
import { populateSearchInputs } from '@views/lib/populateSearchInputs'; | ||
import ExtensionRoot from '@views/components/common/ExtensionRoot/ExtensionRoot'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, this is much cleaner.
|
||
interface Props { | ||
support: typeof SiteSupport.COURSE_CATALOG_DETAILS | typeof SiteSupport.COURSE_CATALOG_LIST; | ||
support: Extract<SiteSupportType, 'COURSE_CATALOG_DETAILS' | 'COURSE_CATALOG_LIST'>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
* fix: use StatusType * fix: use AutoLoadStatus * fix: use typof SiteSupport.* * fix: one more of Status to StatusType * fix: use import type * fix: use path alias imports * fix: use Extract * fix: remove unnecessary import
I replaced Status with StatusType, AutoLoadStatus with AutoLoadStatusType, and I added "typeof" in front of SiteSupport to fix another type error. Not too sure about that last one, I couldn't get it to work with SiteSupportType since we specifically want either of the 2 options.