[Typescript] "Footer" is not inferred from Column type
See original GitHub issueDescribe 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
Additional context
Related discussion: https://github.com/tannerlinsley/react-table/discussions/2882 (unsolved)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
[Typescript] "Footer" is not inferred from Column type #2983
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...
Read more >Minimal TypeScript Crash Course For React
Minimal TypeScript Crash Course For ReactWith Interactive Code Exercises · Functional Components With TypeScript · Props With TypeScript · Callback ...
Read more >React Table Typescript "Type is not assignable" - Stack Overflow
I get an error when doing const tableInstance = useTable({ columns, data }) . Type '{ Header: string; accessor: string; }[]' is not...
Read more >TypeScript Records and Mapped Types - WWT
Let's take a tour of TypeScript's Record and Mapped Type features by looking at their usage and evolution within a project.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tengo el mismo problema.
I solved it by setting it like this:
focus is that do not modify
@types/react-table
.Follow code is my
react-table-config.d.ts
(this code is base to URL)