TypeScript is a programming language for large web applications. It adds new static typing features to JavaScript, as well as implementing upcoming features of the JavaScript language to enable developers to use them today.
Browsers are not familiar with TypeScript, so you must compile TypeScript files into JavaScript before deploying them. To do this, you will need to install TypeScript compiler (tsc), the TypeScript compiler.
To install TypeScript, follow the next steps:
- Click Start |
|All Programs
|Windows System
Command Promp
t
- Write the following command and pressEnter:
npm install typescript -g
- This will start the TypeScript installation
- After a few seconds, the installation will end, and TypeScript will be installed on your machine
- To test whether or not TypeScript is installed correctly, write the following command into Command Prompt and press Enter:
tsc --version
If the installed version is displayed, then TypeScript has been installed correctly