react-table-example
react-table-example copied to clipboard
Type '{ Header: string; accessor: string; }[]' is not assignable to type 'Column<Brand>[]'.
Hey @ggascoigne, thank you for this great repo!
I tried to replicate some of its functionality and I ran into this TS issue:

Do you know what this issue could be?
I added the same type definition file as yours and below you have a part of the table component's code:

Are you seeing anything weird? I would really appreciate your help, thank you!
@jsefiani I was seeing the same issue and resolved it with:
const columns: Array<Column<Brand>> = [...]
> npm list --depth=0 | grep react-table
├── @types/[email protected]
├── [email protected]
├── [email protected]
@scottwernervt Thank you very much!
Thanks a lot !