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(data-grid): improve ts typings and react proptypes #3261
Conversation
Run & review this pull request in StackBlitz Codeflow. |
🦋 Changeset detectedLatest commit: 0bab84e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -62,9 +62,8 @@ export interface TrProps extends React.TableHTMLAttributes<HTMLTableRowElement> | |||
children: NonNullable<React.ReactNode>; | |||
element?: BoxProps['element']; | |||
verticalAlign?: TableVerticalAlignmentOptions; | |||
isLastRow?: boolean; |
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.
Wasn't being used, does nothing.
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.
question: is there a chance it was being used by someone even if it was doing nothing? if so would we want to think twice about removing it to avoid giving someone a new ts error? sidenote: why did we add it in the first place 🤔
} | ||
export interface ThProps extends React.ThHTMLAttributes<HTMLTableHeaderCellElement> { |
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.
HTMLTableHeaderCellElement
was deprecated in favor of HTMLTableCellElement
Size Change: +39 B (0%) Total Size: 995 kB
ℹ️ View Unchanged
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 0bab84e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
@@ -62,9 +62,8 @@ export interface TrProps extends React.TableHTMLAttributes<HTMLTableRowElement> | |||
children: NonNullable<React.ReactNode>; | |||
element?: BoxProps['element']; | |||
verticalAlign?: TableVerticalAlignmentOptions; | |||
isLastRow?: boolean; |
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.
question: is there a chance it was being used by someone even if it was doing nothing? if so would we want to think twice about removing it to avoid giving someone a new ts error? sidenote: why did we add it in the first place 🤔
cba3997
to
aa4a3e7
Compare
It's unlikely that people are using it, however even if they are, the error is a good thing. As to why it was added in the first place, probably during development scribbles. |
✅ Deploy Preview for paste-theme-designer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for paste-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 0bab84e:
|
Passing run #6059 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Improves TS typings and proptypes on DataGrid and Table's Tr, Td, and Th elements.
Based on discussions that happened here: #2597