Getting Started with Typescript

1 · Daniel Doubrovkine (dB.) @dblockdotorg · July 4, 2019, midnight
I’ve done a fair amount of JavaScript, here and there, and have written some TypeScript, too. But I’ve never actually started anything in TypeScript. Attempting a basic “hello world” in TypeScript turned out to be completely non-trivial, so this should help you. Editor I use Visual Studio Code. Node Setup node.js. I use nvm, whatever recent version of node and npm. $ node --version v12.1.0 $ npm --version 6.9.0 Ts-Node TypeScript comes with an execution and REPL for node.js called ts-node. $ np...