codemix / babel-plugin-typecheck

Static and runtime type checking for JavaScript in the form of a Babel plugin.
MIT License
886 stars 44 forks source link

Support flow comments #11

Closed cassus closed 9 years ago

cassus commented 9 years ago

http://flowtype.org/blog/2015/02/20/Flow-Comments.html

phpnode commented 9 years ago

I think this is a feature babel should optionally support (maybe via a different plugin). Right now we're dealing with the TypeAnnotation AST nodes babel gives us, to support this we'd need to create our own from comments, it seems like it'd be overstepping the scope of this project.

cassus commented 9 years ago

It wouldn't make it to babel. https://github.com/babel/babel/issues/2038#issuecomment-122715797