catch statements for errors as well as compiler improvements.
The catch binding parameters capability in TypeScript 2.5 uses a late-stage ECMAScript feature to make catch binding optional in
catch statements. Making catch binding optional “means we can just omit
unusedError altogether,” said Daniel Rosenwasser, Microsoft’s program manager for TypeScript. The reason for that is there are times when developers expect something might fail by throwing an error, but the developer does not care what the error is.