Abazhenov / express-async-handler

Async Error Handling Middleware for Express
572 stars 39 forks source link

Typescript and next() #32

Closed patran closed 5 years ago

patran commented 5 years ago

router.post('/api/v1/abc/:operation/:byParam?', asyncHandler (async(req: Request, res: Response, next) => { await abcController.execute(req, res); }));

I am getting warning about next. Is this expected?

"'next' is declared but its value is never read.ts(6133)"

Thanks

MunifTanjim commented 5 years ago

If you are not using next, just remove it.