Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow typescript to typecheck spreading & destructuring promap.
This was already achieved by binding promp inside of useMemoizedProfunctorState, but Typescript didn't understand that this was allowed. Changing promp to a class property function allows the same functionality while allowing Typescript to understand that destructuring and spreading the class is safe.
- Loading branch information
1 parent
d4d2862
commit 579e59f
Showing
2 changed files
with
56 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