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

Does Flow Support Enums ? #8597

Closed
ammanvedi opened this issue Feb 24, 2021 · 4 comments
Closed

Does Flow Support Enums ? #8597

ammanvedi opened this issue Feb 24, 2021 · 4 comments

Comments

@ammanvedi
Copy link

I can see there is discussion about enum support in

#627
#7837

and babel has added something about this in release notes

https://babeljs.io/blog/2021/02/22/7.13.0#new-flow-features-12193httpsgithubcombabelbabelpull12193-12234httpsgithubcombabelbabelpull12234

and further this seems to cause no errors

https://flow.org/try/#0KYOwrgtgBAGlDeAoKKoEEoF4oCIDOAhngCZ46IC+iiAxgPYh4AuUAZllABTABcsAlFgB8CalUStOMAHRp+1IA

So i am wondering if enums are supported because i cant find any docs about it and open discussions seems to have concerns from some members about this feature yet it seems to work

Thanks !

@lyleunderwood
Copy link
Contributor

a044a71
d503ff4

This diffs moves the existing Flow Enums Babel transform, as defined and used in WWW, to its own package. We copy over the code and tests.

In the future, when we open-source Flow Enums (announce, and move the docs to flow.org), I'll update and expand the README with more information.

🤔

@gkz
Copy link
Member

gkz commented Feb 24, 2021

This is an experimental feature that is not ready an open-source announcement. I'll comment on this issue when I add docs to flow.org and make an announcement.

@gkz gkz closed this as completed Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants