Re:Announcing TypeScript 2.1
by tomatsu on Wednesday December 07, 2016 @01:30PM
(#13124867)
https://flowtype.org/
That's not JavaScript.
[ Parent
| on HN ]
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