Shadcn reusable Data Table component with expandable subrows in Typescript
I use the reusable data table component from ShadcnUI in my project. Now i want to make the rows expandable. I just can’t get it to work with the expandable API from Tanstack-Table. Typescript gives me an error saying my row (which is of type TData) does not have a property ‘subrows’. I understand that TData is a generic type and so this error is correct but how would i go about making the expandable row functionality generic?