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
I am using react-table 7 with typescript and I am passing a function with a parameter for the table Row object (trying to replicate the behaviour for getTrProps from v6 which has rowInfo as one of the params)
After installing the types from Definitely Typed @types/react-table, I tried importing TableRowProps to pass as a type for that row parameter and it isn't accepting it. Says that "Cannot use TableRowProps namespace as a type".
Can you please let me know what am I doing wrong or if there's another name for the type? Please check the image below
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I am using react-table 7 with typescript and I am passing a function with a parameter for the table Row object (trying to replicate the behaviour for
getTrProps
from v6 which has rowInfo as one of the params)After installing the types from Definitely Typed @types/react-table, I tried importing TableRowProps to pass as a type for that row parameter and it isn't accepting it. Says that "Cannot use TableRowProps namespace as a type".
Can you please let me know what am I doing wrong or if there's another name for the type? Please check the image below
Beta Was this translation helpful? Give feedback.
All reactions