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
Argument of type '(req: Request, res: Response, time: any) => void' is not assignable to parameter of type 'ResponseTimeFunction'.
Types of parameters 'req' and 'request' are incompatible.
Type 'IncomingMessage' is not assignable to type 'Request'.
Property 'get' is missing in type 'IncomingMessage'.
And you cannot add a nextFunction.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for reporting the issue. I'm not familiar with TypeScript and have no idea what the action to take here is. Would you be willing to make a pull request with the fix or perhaps walk me through what I would need to change to fix? Thanks!
Hi,
When using the responseTime(fn) it throws some errors.
app.use(responseTime((req: Request, res: Response, time: any)
And you cannot add a nextFunction.
The text was updated successfully, but these errors were encountered: