-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Restructure type hierarchy so that types don't conflict internal…
…ly. (#330) The old `Result<TValue, TError> = ResultValue<TValue> | ResultError<TError>` lead to the expansion `ResultBase<TValue, Error> | ResultBase<unknown, TError>` which lead to a conflict on the `unwrapOrThrow` method and others, where the return type was suddenly `TValue | unknown` and thus always unknown. This commit restructures the type hierarchy so that this conflict is avoided.
- Loading branch information
Hannes Leutloff
authored
Jul 12, 2021
1 parent
d028d18
commit 610302d
Showing
2 changed files
with
56 additions
and
24 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