Re:Structure and Interpretation of Computer Programs – JavaS...
by colejohnson66 on Wednesday December 18, 2019 @12:20PM
(#21827064)
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!
[ Parent
| on HN ]
Re:Structure and Interpretation of Computer Programs – JavaS...
by rounce on Wednesday December 18, 2019 @02:07PM
(#21828131)
What are these tweaks you speak of?
Re:Structure and Interpretation of Computer Programs – JavaS...
by colejohnson66 on Wednesday December 18, 2019 @02:34PM
(#21828425)
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.