New: Built-In TypeScript Support In Node.js — Finally
Published in
4 min readAug 3, 2024
Exciting news today as native TypeScript support finally comes to Node.js!
Yes, you can now use types natively in Node.js.
I guess it’s time for me to throw typescript
and ts-node
in the garbage.
❌Before now:
Node.js only ever cared for JavaScript files.
This would never have run:
Try it and you’d get this unpleasant error:
Our best bet was to install TypeScript and compile with tsc
.
And millions of developers agreed it was a pretty good option: