Skip to content

[Typescript] "Footer" is not inferred from Column type #2983

@baeharam

Description

@baeharam

Describe the bug (required)

I'm using Typescript with react-table, I wanted to add footer to table. However, when I define columns data Column type couldn't infer Footer type.

Provide an example via Codesandbox! (required)

https://codesandbox.io/s/test-react-table-wwemm?file=/src/data.ts
You can see Footer is causing type error

Expected behavior (Recommended)

Column type should be able to infer Footer type

Screenshot

스크린샷 2021-01-12 오후 3 25 59

Additional context

Related discussion: #2882 (unsolved)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions