Skip to content
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

handle ts type errors and warnings in UI build #492

Merged
merged 1 commit into from
May 6, 2022

Conversation

mrahanjam
Copy link
Contributor

@mrahanjam mrahanjam commented May 6, 2022

Handle TS type errors and warnings in UI build

Description

This PR handles the two TS type errors I kept seeing while building the UI. They are not the ideal solutions but it's pretty much the best I could do at this point.
You can read more about the button issue here. If/when we upgrade to MUI v5, we can use ListItemButton instead of type any for the button prop.
For the second one, it's hard to come up with an interface for the event obj as it depends on the props of the element it's coming from, so I just decided to give it a type any.

Edit: Decided to handle warnings as well

PR Type

  • Bug Fix
  • Feature
  • Build Fix
  • Testing
  • General Improvement
  • Cherry Pick

Links

N/A

Test Plan

N/A

Screenshots

N/A

Copy link
Contributor

@sumengwang sumengwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, my vscode finally stops complaining

@mrahanjam mrahanjam force-pushed the chore/fix-ts-type-errors branch 2 times, most recently from 42549db to beb4d67 Compare May 6, 2022 18:51
@mrahanjam mrahanjam requested review from de-lan and sumengwang May 6, 2022 18:53
@mrahanjam mrahanjam force-pushed the chore/fix-ts-type-errors branch from beb4d67 to 00a7e0a Compare May 6, 2022 19:06
@mrahanjam mrahanjam changed the title handle ts type errors handle ts type errors and warnings in UI build May 6, 2022
@mrahanjam mrahanjam merged commit 4fe051c into develop May 6, 2022
@mrahanjam mrahanjam deleted the chore/fix-ts-type-errors branch May 6, 2022 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants