[V8] Separate out types to make it easier to overload useReactTable
#4288
Unanswered
haldunanil
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Why not just write your own table Hook with the proper function signature that you want |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to type
TableMeta
more strongly by overloading the types in@tanstack/table-core
and for the most part, it works fine except when I get to attempting to overloaduseReactTable
.This is what I currently have in my code:
However, the above fails when compiling the app with the following error:
I'm reasonably confident that creating a separate interface that would be assigned to
useReactTable
would be sufficient to fix this issue and make it properly overloadable. Happy to open a PR if that is a direction that sounds desirable.Beta Was this translation helpful? Give feedback.
All reactions