Abazhenov / express-async-handler

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

Improve types #51

Open mario-strohmeier opened 2 years ago

mario-strohmeier commented 2 years ago

With the newest eslint version we currently get the error Type 'P' does not satisfy the constraint 'Params'. Type 'P' is not assignable to type 'ParamsArray'.. This is fixed with this PR by extending the core.Params like it is in the express type of P.