This is a code heavy course, and we want our code to be robust, So we will be writing it in typescript. This will also enable advanced IntelliSense features in our VSCode so that we can quickly see the available methods and properties in our Three.js scripts, and also have extra documentation available to us much quicker.
Install TypeScript globally and confirm which version is installed
npm install -g typescript tsc -v
If you run
tsc -v, and are using PowerShell as the VSCode integrated terminal, then you may see the error
tsc.ps1 cannot be loaded because running scripts is disabled on this system
You have several options, such as run your commands using the classic Windows CMD prompt, Git Bash or use the
tsc.cmd option instead.