I'm using the React version of this library, and I have noticed that the event handler functions values don't get typed with the type that we're sorting by. I would expect the handlers' param to be typed to the same type as I initialized the hook with, but it's being typed as a generic T only.
Here's a screenshot of my code showing the type error:
As you can see, I typed the hook with the ProductSpecification type (such that the array of items should be an array of ProductSpecifications), but when I try to access the values from the handler, they're typed as generic T only.