| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PF3 preview: https://patternfly-react-pr-3693-pf3.surge.sh |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #3693 +/- ##
=========================================
Coverage ? 71.26%
=========================================
Files ? 779
Lines ? 10489
Branches ? 2261
=========================================
Hits ? 7475
Misses ? 2592
Partials ? 422
Continue to review full report at Codecov.
|
Sorry, something went wrong.
| rowKey = 'id' as string, | ||
| onRowClick = (event: React.MouseEvent, row: IRow, rowProps: IExtraRowData, computedData: IComputedData) => undefined as OnRowClick, | ||
| /* eslint-disable @typescript-eslint/no-unused-vars */ | ||
| onRow = (...args: any) => Object, |
There was a problem hiding this comment.
onRow and onRowClick appear to be used?
Sorry, something went wrong.
There was a problem hiding this comment.
Both onRow and onRowClick were throwing TS errors - it looks like the unused variable errors were for the arguments to both functions (...args for onRow, and event/row/rowProps/computedData for onRowClick)
Sorry, something went wrong.
There was a problem hiding this comment.
Can we track down how onRow is used and give it a proper type?
Also, for the unused variables, just put underscores before the variable names. Like _event: React.MouseEvent. Then you can remove the eslint-disable.
Sorry, something went wrong.
| rowKey = 'id' as string, | ||
| onRowClick = (event: React.MouseEvent, row: IRow, rowProps: IExtraRowData, computedData: IComputedData) => undefined as OnRowClick, | ||
| /* eslint-disable @typescript-eslint/no-unused-vars */ | ||
| onRow = (...args: any) => Object, |
There was a problem hiding this comment.
Can we track down how onRow is used and give it a proper type?
Also, for the unused variables, just put underscores before the variable names. Like _event: React.MouseEvent. Then you can remove the eslint-disable.
Sorry, something went wrong.
| class BaseBody extends React.Component<BodyProps, {}> { | ||
| static defaultProps = { | ||
| // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
| onRow: (...args: any) => Object |
There was a problem hiding this comment.
A proper type for onRow would be wonderful.
Sorry, something went wrong.
There was a problem hiding this comment.
It's fine that we can't solve the onRow prop for now. We can fix it in the future.
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
| } | ||
|
|
||
| export interface IHeaderRow extends ColumnType { } | ||
| export type IHeaderRow = ColumnType; |
There was a problem hiding this comment.
Should we have changed this from interface to type?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What: Towards #3592 - linting for react-table