What is Typescript?
Now consider the TypeScript advantage. Since it is a superset of JS, it allows for both a dynamic approach, and also provides structure through the use of type checking. Where the language needs to be dynamic, TypeScript converts to JS. But when a dynamic language needs more order, TypeScript corrects the JS and provides structure.
1. Targets Multiple Browsers
2. Creates Big Applications
- No inherent type casting/type hinting
- Lack of OOPs (Object Oriented Programming)
- Lack of abstraction to provide base structure to a project
3. Type hinting and Typecasting
TypeScript uses type hinting and typecasting so that a variable is given a certain number. Then the language will show the error while developing and resolve it even before it’s deployed. Without typings, it is not clear where a variable property is placed. When problems arise, resolving the issue takes much longer.
Giants using Typescript
Typescript for Frameworks
Many other frameworks out there, other than Angular, provide TypeScript as their second option. To name a few, Vuejs and React also have TypeScript typings available to build an application in a more robust way.