forked from vultix/ts-results
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the parameter spread variants of Result.any and all (#191)
Since [1] Result.any and Result.all supported two ways of being called: # 1. Parameter spread Result.any(result1, result2) # 2. An array Result.any([result1, result2]) I believe the array variant is much more realistic than the parameter spread version. Additionally the parameter spread version can lead to nasty stack overflow surprises[2] so I figured let's remove support for it. Bonus: simpler API (and API documentation). There's no function lost here. [1] 2e03308 ("Add non-spread overload for Result.all (#125)") [2] vultix#85
- Loading branch information
Showing
4 changed files
with
3 additions
and
89 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