Skip to content

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

Open
@Faithfinder

Description

@Faithfinder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions