-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support default return value #12
Comments
Hi, i am currently not able to submit a pull request. I changed the code to following, which makes it possible to return a value in the handlerfunction. it still works for void and async methods. type HandlerFunction = (error: any, ctx: any) => any; `type HandlerFunction = (error: any, ctx: any) => any; function handleError( // decorator factory function
}` |
It would be great, if a default return value could be supported.
The text was updated successfully, but these errors were encountered: