Re:TypeScript support added to Create React App
by h1d on Tuesday October 23, 2018 @01:10PM
(#18285245)
Readable JS doesn't mean, convert back to the file in the format you used to for editing.
That comment could make people throw away the original and end up with machine generated code when going back.
Re:TypeScript support added to Create React App
by smt88 on Tuesday October 23, 2018 @07:40PM
(#18288461)
Have you read transpiled TS before? It's sometimes almost identical to the source. It's as close as you can get to just removing the static typing. Variables have the same names, for example.
I used to have a problem where I'd be debugging the JS instead of TS file because visually, they were almost identical.
Also, the async/await thing isn't an issue if you target the latest ECMAScript version. That's the only really ugly thing, and it's been easily avoidable for over a year.