Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsefiani opened this issue Oct 21, 2020 · 3 comments

Comments

@jsefiani
Copy link

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!

@scottwernervt
Copy link

@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]

@jsefiani
Copy link
Author

jsefiani commented Dec 7, 2020

@scottwernervt Thank you very much!

@aychernov
Copy link

Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants