express-automatic-routes icon indicating copy to clipboard operation
express-automatic-routes copied to clipboard

Use express RequestHandler type

Open pumbas600 opened this issue 1 year ago • 0 comments

Replaces the current Middleware and Route types with the built-in express one. This allows you to include a next parameter in your handlers while still typing it using Resource.

I also made some small changes to the error logging in the extract method to make sure it is being typed correctly.

Sidenote I was having issues running the tests because it couldn't find the module ./reports/base. Adding --reporter classic to the script seemed to fix it locally. Relevant: https://github.com/tapjs/node-tap/issues/624

pumbas600 avatar Feb 23 '23 04:02 pumbas600