This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: split .query into .query and .queryKeys (#87)
The return type of the `.query` function varies depending on whether `keysOnly` is passed as part of the query params. This makes mapping the return type difficult as it's dependent on the function input. Here we: 1. Constrain the return type of `.query` to just key/value pairs 1. Add a new `.queryKeys` method that returns only keys 1. Add the implementation in the adapter to just chain to the existing `.query` method and map the result 1. Remove redundant utils 1. Remove redundant TextEncoder/Decoder exports 1. Change the query sort method to be a regular js sort function 1. Export types for query sort/filter methods Co-authored-by: Vasco Santos <[email protected]>
- Loading branch information
1 parent
a68c067
commit 4bb5ebc
Showing
11 changed files
with
310 additions
and
146 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
Oops, something went wrong.