Re:Announcing TypeScript 2.2
by damncabbage on Wednesday February 22, 2017 @08:04PM
(#13710766)
There's also comments support in Flow directly, but it's sadly (but understandably) hideous:
function somefunction(somestring/*: string*/)/*: boolean */ {
var ret/*: boolean */;
...
return ret;
}
(See https://flowtype.org/blog/2015/02/20/Flow-Comments.html)Might be worth pointing out, the "documentation" package[1] can be used to generate jsdoc annotations suitable for Google Closure compiler from Flow type annotations.
It can also build really nice HTML documentation to.
https://github.com/Kegsay/flow-jsdoc