Re:An introduction to type programming in TypeScript
by nlitened on Wednesday February 02, 2022 @02:04AM
(#30174655)
I think it shows a lot of potential to turn TypeScript to what C++ has become.
[ Parent
| on HN ]
Re:An introduction to type programming in TypeScript
by webstrand on Wednesday February 02, 2022 @08:35AM
(#30177264)
Unlikely, types intentionally cannot affect the emitted JavaScript. You can always get raw JavaScript from TypeScript code by blindly erasing the type annotations (and transforming a few special syntaxes).