GetValue type lost
Hi
I'm trying to define columns using ColumnDef, but for some reason the type on "getValue" in cell is unknown.

3 Replies
rare-sapphire•2y ago
Hi @Gludek. Have you tried using the column helper fns?
https://tanstack.com/table/latest/docs/guide/column-defs#column-helpers
Columns Guide | TanStack Table Docs
API
Table API
rare-sapphire•2y ago
Looking at its type defs, it looks like the accessor helper will either infer the TValue type for you, or you can specify it yourself.
grumpy-cyanOP•2y ago
it works, but this way also should infer the type