Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tomatsu
· 9y ago · 0 comments
https://flowtype.org/
function bar(x): string {
That's not JavaScript.
Comments
[–]
thejameskyle
9y ago
If that's too much you can also do:
function bar(x) /* : string */ {
No compiling necessary