T
TanStack2y ago
provincial-silver

different type for subRows

I came across this (unresolved) gh discussion with a couple of folks all running into a similar scenario as i currently am. Whats the move when the type being passed to getSubRows doesn't match the original exactly ? I'n my case the subRow is basically is just a subset of the original columns. https://github.com/TanStack/table/discussions/4484
GitHub
different TypeScript types for subRows · TanStack table · Discussio...
How can I declare a different Data type for subRows ? All the examples I have seen use the same type for nested subrows. In my case I have Projects (parent) which have 1 or more Tasks (children aka...
1 Reply
equal-aqua
equal-aqua2y ago
facing the exact same scenario here. Not sure what to do. I keep getting an "expected type comes from..." error on getSubRows declaration because my subRow is a subset of the original columns as well, so it doesn't exactly match the type of the original columns. Did you find any fix for this?

Did you find this page helpful?