Hacker News new | ask | show | jobs
by colejohnson66 2375 days ago
JavaScript may have its quirks, but TypeScript is a great improvement. And with a few tweaks to your package.json, you can code in TS for Node.js!
1 comments

What are these tweaks you speak of?
Just do a search for “use TypeScript with Node”:

https://medium.com/javascript-in-plain-english/typescript-wi...

https://blog.risingstack.com/building-a-node-js-app-with-typ...

Basically, you install the `typescript` package which gives you `tsc`. Then you configure Node to run your program with `tsc` through your package.json.