Why use it?
TypeScript is supported by Microsoft and even promoted by Google for Angular. When considering any large scale JavaScript development, it's recommended to use TypeScript. Angular, as a framework, has become a popular choice for frontend development and was itself written using TypeScript. The language syntax has some similarities to Java, which makes it easy for Java developers to work with.
Developers coming from a strongly typed language such as Java might consider JavaScript evil for not having any type safety. This is an aspect that TypeScript primarily solves by providing some much needed, but optional, type safety, along with classes and interfaces. Developers writing JavaScript get very little help from their IDEs to catch ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access