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
Flow opaque type aliases #5990
Flow opaque type aliases #5990
Conversation
👍 Flow 0.51 is released with Flow-side support for opaque types. Excited for this to land! |
@jbrown215 yep, run that script! |
@existentialism Ran generate-interfaces and generate-babel-types-docs! :D excited! |
@existentialism should I not have run one of those scripts? travis build failed from one of the files changed by the script |
@jbrown215 just fyi, I pushed #6031 to fix the CI error! :) |
@existentialism thanks for the help! looks like tests are passing now :D |
Adds support for Flow's opaque type aliases. Babylon support was added in this PR: babel/babylon#643
Tests pass when using the current state of babylon's master branch. Backport for 6.x will come after this lands.
I tried to split my commits in a way that would make it easier to review. The first two are the only code changes I made, the rest are tests.
Q: I assume I probably should update the babel-types README to include declareOpaqueType and opaqueType, but I noticed all of the docs refer to
to.is__
andt.assert__
which only look like they are declared in an autogenerated file. Should I run that script myself?