Hacker News new | past | comments | ask | show | jobs | submit login

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!



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.




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

Search: