Setting Up a Simple TypeScript Project10:19 with Richard Oliver Bray
Let's create a simple TypeScript project. For this video, you'll need to have node.js installed.
If you downloaded TypeScript locally, you don’t have the tsc command so you can't run
tsc --version or
tsc index.ts to compile into a js file.
To follow along, you’ll need to add
npx before the commands that I enter, so
npx tsc --version for example.
Instructor has the Error Lens extension installed. This causes the errors to be shown in line with the code. If you don’t install the extension you can view the errors by hovering over the red squiggle line.
All shortcuts mentioned in this course are for macOS operating systems. For Microsoft Windows systems, please use Control (Ctrl) instead of Command (Cmd), and use Alt instead of Option.
You need to sign up for Treehouse in order to download course files.Sign up