Re:Show HN: Codewich – A live-updating TypeScript/CSS/HTML p...
by jstarks on Friday March 24, 2017 @06:20PM
(#13952696)
What's an example of a TypeScript program where erasing the type information won't produce valid ES6? I had thought Flow and TypeScript were the same in this regard, but I am not an expert.
[ Parent
| on HN ]
Re:Show HN: Codewich – A live-updating TypeScript/CSS/HTML p...
by evmar on Friday March 24, 2017 @06:33PM
(#13952752)
TypeScript supports ES7 features, for example. It also has a few language-local quirks (like parameter properties, described https://www.typescriptlang.org/docs/handbook/classes.html ).
I find the grandparent argument pretty unconvincing though. People writing Flow are generally using JSX or ES modules (the Flow docs recommend the latter, for example), both of which require a transpiler like Babel to be used in a browser anyway.