TypeScript is an open-source object-oriented language developed and maintained by Microsoft.
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.
There are three ways to install TypeScript:
- Node.Js Package Manager
- Nuget Package Manager
- 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,