TypeScript Tutorials

By | May 2, 2021

TypeScript Overview:

TypeScript is an open-source object-oriented language developed and maintained by Microsoft.

It is a typed superset of Javascript [superset means it supports whatever supports we have in javascript along with that some extra functionlities it supports.] that compiles to plain JavaScript.

TypeScript extends JavaScript by adding data types, classes, and other object-oriented features with type-checking.

As name suggest, its check type while compilation and gives compilation error if type is not matched.

It enforces type checking compile time, to avoid run time errors.

TypeScript Installation

There are three ways to install TypeScript:

  1. Node.Js Package Manager
  2. Nuget Package Manager
  3. or As Plugin in your IDE.

I like to install using Nuget package manager, as its easiest way.

Select Microsoft.TypeScript.MSBuild and click on the Install button. This will install TypeScript in your local project.

TypeScript Practice can be done on below playground,