šŸ§¢ TheĀ TruthĀ AboutĀ Node.js Typescript Support

Tom Smykowski
2 min readJul 29, 2024

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.

--

--

Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.