3 ms·
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!
by colejohnson66 7y 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!
- rounce 7y agoWhat are these tweaks you speak of?
- colejohnson66 7y agoJust do a search for “use TypeScript with Node”: https://medium.com/javascript-in-plain-english/typescript-with-node-and-express-js-why-when-and-how-eb6bc73edd5d https://medium.com/javascript-in-plain-english/typescript-wi... https://blog.risingstack.com/building-a-node-js-app-with-typescript-tutorial/ 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.