Skip to content
Discussion options

You must be logged in to vote

I figured it out.

Long answer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table

tldr:
installing the type library @types/react-table doesn't mean we are all set with types for react-table. We need to create a file named react-table-config.d.ts in order for types depend upon declaration merging to work well. So depending on what what react-table plugin hooks you want to include, you can play around with the types in react-table-config.d.ts to make it give more or less type suggestion for the column or table.
You may also need to change tsconfig.json to include react-table-config.d.ts.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomliang-amzn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant