TanStack / table

🤖 Headless UI for building powerful tables & datagrids for TS/JS - React-Table, Vue-Table, Solid-Table, Svelte-Table
https://tanstack.com/table
MIT License
24.61k stars 3.04k forks source link

AccessorFnColumnDefBase not being exported, causes type error with an array of columns defined by columnHelper #5444

Closed slhsxcmy closed 4 months ago

slhsxcmy commented 4 months ago

TanStack Table version

8.15.0

Framework/Library version

18

Describe the bug and the steps to reproduce it

Similar to issue https://github.com/TanStack/table/issues/5135 (for AccessorKeyColumnDefBase), in this case the error comes from AccessorFnColumnDefBase.

It seems to happen when several columns have different return types in their accessorFn, this error happens:

Exported variable 'Columns' has or is using name 'AccessorFnColumnDefBase' from external module "/node_modules/@tanstack/table-core/build/lib/types" but cannot be named.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

See the bottom of this TS playground

Screenshots or Videos (Optional)

image

Do you intend to try to help solve this bug with your own PR?

Yes, I am also opening a PR that solves the problem along side this issue

Terms & Code of Conduct

KevinVandy commented 4 months ago

Does this only happen in certain package managers?