The choice.

This article is part of the collection “TypeScript Essentials”,

this is Chapter One.

If you are asking yourself:

Should I use TypeScript? Do I need it?

Then, this article is for you.

⚠️ This article only reflects my opinion, lessons I learned and quoted the opinions of other developers.

The bad reasons

With TypeScript, no need for writing tests

As explained by Eric Elliot in the following great article,

“static types do not reduce overall bug density”.

Types are written by the developers and not checked at runtime, so the “strength” of your program depends on your usage of TypeScript.

If you looking at TypeScript to reduce your bugs, please look at TDD instead.

However, a recent study shows that the use of type results in a 15% decrease of bugs.

Quoting Adrian Colyer:

Is a 15% reduction in bugs making it all the way through your development pipeline worth it to you?

If you like data and are willing for more details about this “15%”,

I highly encourage you to read the full article: