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

Add support for Result.isOk and Result.isError for Javascript/Typescript #3727

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

zprobinson
Copy link

@zprobinson zprobinson commented Jan 31, 2024

PR for issue #3726

First time contributor, I'm willing to learn whatever you have to share.

I'm curious why it seems the static functions for Result seem light. Is it intentional, or would you be interested in expanding to the rest of the module?

Additionally unsure of how I handled the Replacements.fs file. That's a scary file to look at, let me know if there is some more intuition that I was missing on my first pass.

Only includes JS/TS support. Others can be added if this is okay.

@ncave
Copy link
Collaborator

ncave commented Jan 31, 2024

@zprobinson Thank you for your contribution, looks good!

@ncave
Copy link
Collaborator

ncave commented Jan 31, 2024

@zprobinson

would you be interested in expanding to the rest of the module?

By all means, contributions are always welcome, and no contribution is too small.

It should be pretty easy to add support for Python/Rust/Dart targets too, it's more or less the same.

@MangelMaxime
Copy link
Member

Thank @zprobinson

If you want to add support for others target too, please do so :)

@MangelMaxime MangelMaxime merged commit f195700 into fable-compiler:main Jan 31, 2024
18 checks passed
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.

3 participants