You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once I installed "@types/react-table": "^7.0.18" I wanted to reuse some interfaces inside my component or know how to properly avoid problem on picture bellow ( Type 'GridColumn[]' is not assignable to type 'Column[]'.)
As a quick solution I used headerGroup.headers.map((column: UseSortByColumnProps<any> & any) => (
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
By attempting to implement ui-kit component based on react-table I faced some problems with compatibility of types.
Simple implementation
My outer interface looks like:
Once I installed "@types/react-table": "^7.0.18" I wanted to reuse some interfaces inside my component or know how to properly avoid problem on picture bellow
( Type 'GridColumn[]' is not assignable to type 'Column[]'.)
As a quick solution I used
headerGroup.headers.map((column: UseSortByColumnProps<any> & any) => (
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions