Open mrichhub opened 1 year ago
app.useAsync(async(req: Request): Promise<void> => { }) throws an error on version 0.9.0 with:
app.useAsync(async(req: Request): Promise<void> => { })
Expected at least 2 arguments, but got 1.
I believe this is just a typings issue because the definition for useAsync is trying to piggy back off of getAsync, postAsync, etc.
Also seeing this, curious if there's a workaround. For now I added // @ts-expect-error: TS2555 above the line.
// @ts-expect-error: TS2555
app.useAsync(async(req: Request): Promise<void> => { })
throws an error on version 0.9.0 with:I believe this is just a typings issue because the definition for useAsync is trying to piggy back off of getAsync, postAsync, etc.