Typescript narrow types in catch clauses, how does it work within typescript, that is the question that we are answering in this video.
When you are coming from languages like Java, C++, or C#, you are used to doing your error handling by throwing exceptions. And subsequently, catching them in a cascade of catch clauses. In typescript you will find that this is slightly different and I explain you in this video why.

#typescript

Typescript Narrow Types in Catch Clauses
1.50 GEEK