I believe this is the WRONG QUESTION.
Previously, this topic has been discussed in different shapes here:
Article No Longer Available
And here:
No, TypeScript is not a waste of time.
Resi Respati ・ Jul 29 '19
But, these two topic forget one simple thing:
Typescript is just a matter of taste, it's not about you writing better code or them writing an ugly one.
Clean code doesn't abide to language X or Y.
After all, clean code is clean code.
What do you think?









The direct answer to the question is no. But it can help you to remove a big number of type-related errors.
The next question is what type-related errors are? It can be as simple as
1 + "!", or we can make the wrong state irrepresentable with the help of types than type checker will help you remove some state errors as well.Type checker can prevent
See this article which compares tests and types.
As well I need to mention that TS isn't sound, so it won't prevent all type errors (sad).
I treat TS as just one more tool in my toolbelt, together with unit tests, integration tests (cypress), screenshot diffing tests etc.