I'm trying to integrate this library (react-query-kit) in a codebase. It's is a library built around @tanstack/react-query. The issue now is that whenever I try to use the variable of the router to invalidate a query, I get TS (7022) reference error from Typescript even though everything seems to be working.
Here's a sample code demonstrating the issue.
Any Idea how to fix the error? Only approach that seem to work is defining the property as any which isn't ideal.