-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug (required)
Some type definitions are incomplete -- in the column for example.
Property 'getSortByToggleProps' does not exist on type 'HeaderGroup<object>'.ts(2339)
Property 'isSorted' does not exist on type 'HeaderGroup<object>'.ts(2339)
Property 'isSortedDesc' does not exist on type 'HeaderGroup<object>'.ts(2339)
Provide an example via Codesandbox! (required)
https://codesandbox.io/s/react-table-incomplete-types-x1es6
Steps To Reproduce (required)
Try to use useSortBy
on react-table
and consume the getSortByToggleProps
function or isSorted
and isSortedDesc
properties on a TypeScript project.
Expected behavior (Recommended)
The types shouldn't error
This bug was reported without any information before and noticed they were also using TypeScript so I could only figure it was TypeScript specific.
#1481