Re:I Was Wrong About TypeScript
by hiphipjorge on Sunday June 05, 2016 @05:10PM
(#11843146)
Well, you still need some transpiling in order to remove the Flow type signatures. In practice, they end up being pretty similar in terms of needing a build step.
[ Parent
| on HN ]
Re:I Was Wrong About TypeScript
by TAForObvReasons on Sunday June 05, 2016 @05:18PM
(#11843179)
You can embed the type information in special JS comments that the checker understands: http://flowtype.org/blog/2015/02/20/Flow-Comments.html
Your existing minification step will remove the comments. But even if you don't remove the comments the code will still run.