enkot / catch-decorator

Allows you to handle exceptions in ECMAScript/Typescript classes with only one annotation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support finally block

SGLMaster opened this issue · comments

I think you can easily add a third optional parameter to the catch decorator, that parameter would be another handler to use in a finally block. Useful when you have code you want to call after either success or error.