-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ramda's complement returns a function whose type is the same as the input function provided. The runtime difference is that the boolean value is flipped when the function is called. Flow doesn't handle expressing this very well, and thus doesn't preserve the returned function's type. Until we have some mechanism to do this, we can write a bunch of arity variants - or generate them, as was done here. The libdef and its accompanying test are both generated. If you want to generate higher arity to support or want to revisit the generation, the original generation was done here: https://github.com/LoganBarnett/typedef-gen
- Loading branch information
1 parent
42924f7
commit b38de14
Showing
7 changed files
with
489 additions
and
27 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
Oops, something went wrong.