Back

TypeScript: What is it & How To Install it

Intro

I am creating a new series about TypeScript.

In this short article, we will learn how to install it.


What is TypeScript?

  • TypeScript is a typed superset of JavaScript that compiles to JavaScript, therefore existing JavaScript programs are also valid TypeScript programs
  • it is developed and maintained by Microsoft
  • it provides great features like static type checking and type inference

How To Install it?

First, you need NodeJS & npm

Windows, macOS, Linux

  1. Install TypeScript: npm install -g typescript
  2. Confirm the Installation: tsc --version

If you get a permission denied error, try so use sudo npm install -g typescript


Next Part

We will learn the basic workflow how to write TypeScript code.


Further Reading


Questions

  • Do you use TypeScript?
  • Why do you use it?
  • Do you think it’s worth it?
  • Do you use it in all of your projects?