You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The middy handler always expects the lambda handler to return void or Promise<any>. Now i have to make my handlers async even if they don't do any async tasks. I would like to use it with a synchronous handler.
To Reproduce
How to reproduce the behaviour:
Sample code:
Describe the bug
The middy handler always expects the lambda handler to return
void
orPromise<any>
. Now i have to make my handlers async even if they don't do any async tasks. I would like to use it with a synchronous handler.To Reproduce
How to reproduce the behaviour:
Sample code:
Thrown error:
Type '{ statusCode: number; body: string; }' is not assignable to type 'void | Promise<any>'.
Expected behaviour
Middy should allow sync handlers
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: