Environment
Node.js 24.13.0
httpxy 0.1.7
Reproduction
chimurai/http-proxy-middleware#1160 (comment)
Describe the bug
The ProxyServer is extending EventEmitter w/o providing a typed event map, resulting in proxyServer.on(eventName /* 'proxyReq' | 'proxyRes' | etc. */, (arg1, arg2, arg3) => {}) usage getting any arguments on the event handler.
Additional context
I am trying to replace http-proxy with httpxy in http-proxy-middleware: chimurai/http-proxy-middleware#1160
Logs
Not applicable
Environment
Node.js 24.13.0
httpxy 0.1.7
Reproduction
chimurai/http-proxy-middleware#1160 (comment)
Describe the bug
The
ProxyServeris extendingEventEmitterw/o providing a typed event map, resulting inproxyServer.on(eventName /* 'proxyReq' | 'proxyRes' | etc. */, (arg1, arg2, arg3) => {})usage gettinganyarguments on the event handler.Additional context
I am trying to replace
http-proxywithhttpxyinhttp-proxy-middleware: chimurai/http-proxy-middleware#1160Logs
Not applicable