-
In our project, we have different hooks for different types of table data, as an example:
and one component for displaying all the data.
how do I need to type that any, so I can use both using a union type
does not work How do I solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Got the solution from here so typing this would be:
or to be even typesafer:
|
Beta Was this translation helpful? Give feedback.
Got the solution from here
so typing this would be:
or to be even typesafer: