Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Result.fromJSON return type #81

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Conversation

nobrayner
Copy link
Contributor

Fixes #80

Adds an explicit return type to Result.fromJSON so that the return type isn't effectively inferred as Ok<A> & Ok<never> | Error<E> & Error<never> which is an impossible type to have.

@nobrayner
Copy link
Contributor Author

@bloodyowl

@bloodyowl bloodyowl merged commit 3c53fb0 into swan-io:main Sep 10, 2024
1 check passed
@nobrayner nobrayner deleted the fix-80 branch September 10, 2024 08:47
@bloodyowl
Copy link
Member

thank you! released in v2.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Result.fromJSON has impossible return type
2 participants