Re:Announcing TypeScript 2.1
by manojlds on Wednesday December 07, 2016 @12:57PM
(#13124533)
Flow is not a language
[ Parent
| on HN ]
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