Strongly typed column filters #4291
Unanswered
jakub-coinmetro
asked this question in
Ideas
Replies: 1 comment
-
@tannerlinsley not sure tag to spark conversation here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently columnFilters are typed as follows:
Are there any strategies to improve type-safety of
value
orglobalFilter
?When having filter as union type like:
I would love to somehow make table aware of this so it's for example derrived in
filterFn
inColumnDef
or intable.getState().columnFilters
I know it's a heavy request, but maybe there are some strategies around that that we could use today.
Current workaround for us was to
table.getState().columnFilters as CustomFilter[]
when passing it as props andCheers!
Beta Was this translation helpful? Give feedback.
All reactions