ui icon indicating copy to clipboard operation
ui copied to clipboard

Bad Typesafety with tanstack/react-table ?

Open dBianchii opened this issue 1 year ago • 2 comments

Is anyone else having bad typesafety problems with the tanstack-react-table library?

image

It also allows me to pass any string I want to getValue() without complaining

dBianchii avatar May 10 '23 15:05 dBianchii

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

dBianchii avatar May 13 '23 18:05 dBianchii

https://github.com/shadcn/ui/issues/346

its-monotype avatar May 14 '23 09:05 its-monotype

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.

shadcn avatar Jul 02 '24 23:07 shadcn