-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add types to useSuspenseSelect (#60733)
* fix: add types to useSuspenseSelect This commit use existing types to more completely type the `useSuspenseSelect` hook. Using a generic `MapSelect` type for the argument and it's return type will provide exact typings of the provided `select` function when using a typed data store object. * add @throws JSDoc for suspense promise * fix: remove incorrect @typedef
- Loading branch information
Showing
2 changed files
with
18 additions
and
14 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