react-table-example icon indicating copy to clipboard operation
react-table-example copied to clipboard

Type '{ Header: string; accessor: string; }[]' is not assignable to type 'Column<Brand>[]'.

Open jsefiani opened this issue 5 years ago • 3 comments

Hey @ggascoigne, thank you for this great repo!

I tried to replicate some of its functionality and I ran into this TS issue: image

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:

image

Are you seeing anything weird? I would really appreciate your help, thank you!

jsefiani avatar Oct 21 '20 20:10 jsefiani

@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 avatar Nov 25 '20 21:11 scottwernervt

@scottwernervt Thank you very much!

jsefiani avatar Dec 07 '20 22:12 jsefiani

Thanks a lot !

aychernov avatar May 25 '22 22:05 aychernov