-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transition): Normalize
error()
to always return Rejection
In a7464bb we normalized the `Transition.error()` to always return a `Rejection` object. However, we missed two cases: transition invalid and/or invalid parameter values. This fixes those two cases. We also updated the docs and return types (switch from `any` to `Rejection`) to better reflect this change.
- Loading branch information
1 parent
453b028
commit 9bcc5db
Showing
3 changed files
with
83 additions
and
12 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