I think the idea with Flow is you just have JSDoc type annotations, so you get strong typing without transpiration.
Re:Evolution of the Heroku CLI: 2008-2017
by frou_dh on Sunday September 03, 2017 @05:52AM
(#15160571)
There is a comment convention where you can add Flow type annotations and definitions to vanilla JS:
x /*: T*/
/*::
type T = {
...
}
*/
But in practice I don't think it's pushed as being preferable to the invasive syntax.
Re:Evolution of the Heroku CLI: 2008-2017
by styfle on Sunday September 03, 2017 @09:42AM
(#15161368)
I believe TypeScript has the JSDoc feature as well, although it's much more recent.
There is the odd sense of randomness to the choices in all these CLI upgrades. Can't quite put my finger on it. It brings to mind the saga of Wasabi.