Wrap-up
Chapter 1: What is TypeScript
Chapters - Table of contents
JavaScript dynamic typing and lack of conventions make it hard to be efficient in growing codebase.
For this reason, Microsoft released TypeScript in 2012; A JavaScript superset typed language that also gives you access to future versions of ECMAScript at no cost.

TypeScript provides a static structural typing system (with erasure)
Unlike other languages like Java, TypeScript matches types based on their structure. TypeScript types are static, meaning that no type assertions are performed at runtime. All type annotations are removed at compile time.

TypeScript will reduce bugs (typos), improve stability between moving parts, and enhance the developer experience.
TypeScript will mainly improve the Developer Experience, making it easier to navigate and refactor projects at scale. If configured and used correctly (see Chapter 4), TypeScript can also reduce the number of bugs landing in production; However, TypeScript is not replacing tests vital to increasing application stability.

TypeScript requires a higher investment when building general-purpose/well-architectured code.
Using TypeScript to improve an application's stability comes at a cost. Improving stability requires a stricter configuration and more advanced types that need some practice to build fluently.
We use cookies to collect statistics through Google Analytics.
Do not track
 
Allow cookies