News for hackers. Stuff that matters.
Re:I Was Wrong About TypeScript by burai on Sunday June 05, 2016 @01:59PM (#11842166)
Another good alternative is Facebook's flow. Rather than being a transpired language it works on top of JavaScript files.

This two tools are amazing and it improves working with JavaScript to the point of never wanting to go back to not typed JavaScript

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.
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.

Re:I Was Wrong About TypeScript by Tx3 on Sunday June 05, 2016 @02:46PM (#11842409)
You're absolutely right. Flow seems to be a very good alternative.

One thing I would like to add regarding the .js files, TypeScript 1.8 added a flag --allowJs which makes some sanity checks to the plain old .js files.

Re:I Was Wrong About TypeScript by lobster_johnson on Sunday June 05, 2016 @10:22PM (#11844258)
It sounds like --allowJs alleviates the need to create TypeScript definitions for everything? So if you have an existing project based entirely on JavaScript, you can gradually convert each file to .ts without having to do anything else?
Re:I Was Wrong About TypeScript by nojvek on Sunday June 05, 2016 @10:55PM (#11844356)
That is true. You slowly add more black typescript to a white js project as you go along and decide the shade of grey you want.
Re:I Was Wrong About TypeScript by danielearwicker on Monday June 06, 2016 @12:04AM (#11844580)
Definitely an aim of TS to make it easier to continue using JS for those who prefer a half-way house, see: https://github.com/Microsoft/TypeScript/issues/4789