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

Add support for QualifiedTypeIdentifier form #22

Closed fixplz closed 9 years ago

fixplz commented 9 years ago

When you write function f2 (to: X.Y.Z.Type) {} we currently get a duck typing fail with Babel's AST and we generate deficient code. This adds support for this form – it resolves X.Y.Z.Type like an expression.

phpnode commented 9 years ago

@fixplz thanks!

fixplz commented 9 years ago

Nice reaction time!