A catch clause with typedefinition isn't supported by TypeScript

Fixes #145