2 ms·
There is a comment convention where you can add Flow type annotations and definitions to vanilla JS: x /*: T*/ /*:: type T = { ... }
by frou_dh 9y ago
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.