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

Flow opaque type aliases #5990

Merged
merged 21 commits into from Aug 2, 2017
Merged

Flow opaque type aliases #5990

merged 21 commits into from Aug 2, 2017

Conversation

jbrown215
Copy link
Contributor

Q A
Patch: Bug Fix? No
Major: Breaking Change? No
Minor: New Feature? Yes
Deprecations? No
Spec Compliancy? Yes
Tests Added/Pass? Yes
Fixed Tickets None
License MIT
Doc PR ?
Dependency Changes N/A

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__ and t.assert__ which only look like they are declared in an autogenerated file. Should I run that script myself?

@samwgoldman
Copy link
Contributor

👍

Flow 0.51 is released with Flow-side support for opaque types. Excited for this to land!

@existentialism existentialism added area: flow PR: Spec Compliance 👓 A type of pull request used for our changelog categories labels Jul 25, 2017
@existentialism
Copy link
Member

@jbrown215 yep, run that script!

@jbrown215
Copy link
Contributor Author

jbrown215 commented Jul 25, 2017

@existentialism Ran generate-interfaces and generate-babel-types-docs! :D

excited!

@jbrown215
Copy link
Contributor Author

@existentialism should I not have run one of those scripts? travis build failed from one of the files changed by the script

@existentialism
Copy link
Member

@jbrown215 just fyi, I pushed #6031 to fix the CI error! :)

@jbrown215
Copy link
Contributor Author

@existentialism thanks for the help! looks like tests are passing now :D

@existentialism existentialism merged commit 4e9a25e into babel:7.0 Aug 2, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: flow outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Spec Compliance 👓 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants