Closed tnguyen14 closed 1 year ago
Over here (https://github.com/TooTallNate/node-proxy-agent/blob/master/index.d.ts#L10-L12) opts are defined as "AgentOptions" from agent-base.
Inside agent-base "AgentOptions" is defined like this
export type AgentOptions = {
timeout?: number;
};
But still, "mapOptsToProxy" function https://github.com/TooTallNate/node-proxy-agent/blob/master/index.js#L79-L129 is expectin opts to contain properties like "port", "host", "protocol" etc.
This code in this repository has been moved to the proxy-agents
monorepo, so I am closing this pull request. If you feel that this issue still exists as of the latest release, feel free to open a new issue over there.
Hi,
Could you provide some documentation for the different object shapes that are available for the
new ProxyAgent(opts)
constructor?