Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agree completely. It also makes interop between Node and Deno more painful. But there is hope on the horizon. :)

See https://github.com/microsoft/TypeScript/issues/37582 which is referenced in the 4.9 Iteration Plan as "Support .ts as a Module Specifier for Bundler/Loader Scenarios": https://github.com/microsoft/TypeScript/issues/50457



But that doesn't seem like it would fix the typical flow, there still would be no transpiling of imports. So yes you could use .ts in ts-node, but you would have to use .js in tsc. Which is pretty awful (you want your code to work with both).


Actually looks to be tabled for TypeScript 5.0, release date of 'March 14th' next year.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: