Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table<RowType> is not assignable to Table<unknown> #5971

Open
2 tasks done
Faithfinder opened this issue Mar 17, 2025 · 1 comment
Open
2 tasks done

Table<RowType> is not assignable to Table<unknown> #5971

Faithfinder opened this issue Mar 17, 2025 · 1 comment

Comments

@Faithfinder
Copy link

TanStack Table version

8.21.2

Framework/Library version

18.3.0

Describe the bug and the steps to reproduce it

When trying to write helper functions that accept any table, Table<unknown> doesn't work as a parameter type, as specific table instances aren't assignable to it. This has been fairly easy to work around with making helpers generic, however it's still very unexpected every time.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzjAnmApnAKgQwEYA26ANHAMZTo4zq6GYC+cAZlBCHAOQACMOAdgGc+ZANYB6SjjIwAtH3qcAUEqLwArv1H8IAd350iALmz4iAHk3a9-AHwBuJWQhD41-YfQnP5pAAt0AgIIE05daAIAE044Bls4AF5yKRpPAAoEBgBKFSsdDzNMJPcDQqA

Screenshots or Videos (Optional)

No response

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

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
@hypecode-tech
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants