November 2019
Intermediate to advanced
336 pages
11h 30m
English
For simple code, such as trying out some code samples without dependencies, you can use the online TypeScript playground at https://www.typescriptlang.org/play.
To install locally, you first need Node.js and npm, the Node Package Manager. You can get them at https://www.npmjs.com/get-npm. When you have those, run npm install -g typescript to install the TypeScript compiler.
You can compile a single TypeScript file by passing it as an argument to the TypeScript compiler, such as tsc helloworld.ts. TypeScript compiles to JavaScript.
For projects that contain multiple files, a tsconfig.json file is used to configure the compiler. Running tsc with no arguments from a directory ...
Read now
Unlock full access