ui
ui copied to clipboard
Bad Typesafety with tanstack/react-table ?
Is anyone else having bad typesafety problems with the tanstack-react-table library?
It also allows me to pass any string I want to getValue() without complaining
Related to this https://github.com/TanStack/table/issues/4142 As mentioned in the issue above, here's the solution: https://github.com/TanStack/table/pull/4185
const columnHelper = createColumnHelper<TodoColumn>()
Since the docs are all in typescript, maybe would be good to update it using this columnHelper?
https://tanstack.com/table/v8/docs/guide/column-defs#column-helpers
https://github.com/shadcn/ui/issues/346
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.