3 ms·
I think the idea with Flow is you just have JSDoc type annotations, so you get strong typing without transpiration.
by z3t4 9y ago
I think the idea with Flow is you just have JSDoc type annotations, so you get strong typing without transpiration.
- frou_dh 9y agoThere 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.
- styfle 9y agoI believe TypeScript has the JSDoc feature as well, although it's much more recent.
- styfle 9y agohttps://code.visualstudio.com/Docs/languages/javascript#_type-checking-and-quick-fixes-for-javascript-files https://code.visualstudio.com/Docs/languages/javascript#_typ...