Skip to content

ProxyServer's event is not typedΒ #95

@SukkaW

Description

@SukkaW

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions