-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): Fix type errors when using fully-typed inputs like QueryF…
…ilters<Data, Error>, and test all QueryClient methods to detect similar issues (#8375) * Add test with failing types * Tidy up * Move tests to correct file * Add initial fixes (some review and testing needed) * Formatting * Ensure T params are mandatory for new overloads * Fix type issues * Unnecessary DataTag * Add typeless tests * Fix some cases * Fixing more cases * Fix some typings * Fix remaining issues * Fix linting errors * Fix one warning * Revert unnecessary change to getQueryDefaults * Remove mutation defaults todo * Rename var * Remove all additional overloads in favour of a single definition which supports all cases * Change type tests to more idomatic api
- Loading branch information
1 parent
ceb4094
commit 175757a
Showing
4 changed files
with
437 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.