-
Notifications
You must be signed in to change notification settings - Fork 114
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
Annotations for Flow Type Checker #41
Comments
I would love to use Flow, but need to wait for more complete ES6 support. facebook/flow#62 |
👍 |
as far as I know Babel supports Flow annotations |
Babel will strip the annotations, but Flow itself doesn't support certain ES6 features, so type-checking won't work. |
there is a way to blacklist flow transformer babel/babel#665 (comment) |
Huh? Then what's the point? |
to run Flow on transpiled ES5 code with Flow annotations in it |
Ah, I see. So we would output the ES5 code to a directory called |
yep |
I like that idea. Do you know of any other libraries that are doing this? I've only played with Flow a bit, and I wonder if it would choke on any of extra code Babel adds. |
actually no but I saw some people speak about this on |
@chicoxyzzy No idea how or why people use it. But Flow should accept and run all Babel ES5 output without a problem and if it doesn't then it'd be a bug in Flow. |
In my understanding it would be possible since Flow 0.4.0 to annotate the Flummox API with type information. For Flummox users it would mean that you could statically check with Facebook Flow that you are calling Flummox the right way from your application code. Sounds tempting :-)
The text was updated successfully, but these errors were encountered: