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

catchResult for promises #11

Open
kiranpradeep opened this issue Dec 30, 2023 · 0 comments
Open

catchResult for promises #11

kiranpradeep opened this issue Dec 30, 2023 · 0 comments

Comments

@kiranpradeep
Copy link

In most other similar libraries for option/result, we don't similar type inferencing. I like that for Option, once inside if() we can directly use the variable. Similar for Result, once inside isOk() check, type inference is active. awesome job.

This is not an issue, only a request. Currently, catchResult can only be used with functions. Can it be extended to Promises ?

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

No branches or pull requests

1 participant