Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): make
FilterQuery
strict again!
The inference fix from fcb1739 introduced an issue with `FilterQuery` that started accepting any keys. This was because of the extension, which was not a proper way to fix this. The original issue was in fact caused by something else than the PK type - it was more about the usage of naked `T` type in the `FilterQuery` union. We now define it as `T & {}` which helps with getting the right inference priorities. The fix from fcb1739 is now removed and the types are simplified (the `Query` generic is removed). Related: fcb1739
- Loading branch information
Showing
6 changed files
with
30 additions
and
20 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
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
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