š§¢ TheĀ TruthĀ AboutĀ Node.js Typescript Support
No, you donāt need to wait to run Typescript with Node.js
Lately there is a news circling programming social media that Node.js added support for Typescript:
But this news is misleading and fake.
As we can read in the merge request, actually there was something else added to Node.js and the truth about Typescript is also different.
So, the new experimental feature actually doesnāt involve using Typescript per se. What it actually is is stripping Typescript from the source code.
This article was brought to you thanks to my readers on Medium.
It means that you can use the flag to run Typescript files. But these files arenāt typechecked and transpired. But, Typescript types are removed from the code like they never been there.
It is useful for example when backend and frontend team share common code that is written in Typescript, but backend team doesnāt want to deal with Typescript because they write in vanilla Javascript.