chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.62k stars 825 forks source link

test(types): contextual types #946

Closed chimurai closed 9 months ago

chimurai commented 9 months ago

Enable test and include temporary workaround by providing explicit types:

// FIXME: contextual types should work with express path middleware (without providing explicit types)
middleware<express.Request, express.Response>
coveralls commented 9 months ago

Coverage Status

coverage: 97.619%. remained the same when pulling b18eb7711742bf4678e180d89bc8c840eb8ce303 on test-contextual-types into a7039693e6094546ead45f462ce1e79ec8d0d616 on master.