News for hackers. Stuff that matters.
Re:Announcing TypeScript 2.1 by tomatsu on Wednesday December 07, 2016 @01:30PM (#13124867)
https://flowtype.org/

  function bar(x): string {
That's not JavaScript.
Re:Announcing TypeScript 2.1 by thejameskyle on Wednesday December 07, 2016 @02:51PM (#13125618)
If that's too much you can also do:

    function bar(x) /* : string */ {
No compiling necessary