Installing Typescript and running typescript compiler.

To install Typescript Comiler

npm install -g typescript

To check with the typescript version

tsc -v

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5c43537b-9b34-4e82-ab10-3e9dda264223/Untitled.png

Download Visual Studio Code for Linux/Windows

Visual Code Download Link

  1. Open Visual Studio Code
  2. Open Same Folde where you have installed Typescript compiler
  3. Add File by clicking on plus icon on left pane
  4. Create a basic class.
  5. Compile your type script file and generate output.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/83943569-557a-4a9e-b1ac-b9d5ef2c781b/Untitled.png

See the result in compiled javascript of written typescript code.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/cc5d7e9d-00e2-473c-b380-3433cc9dd3e6/Untitled.png