apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.

Home Page:https://www.npmjs.com/package/proxy-chain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[2.0.0-beta.0] Please export additional types

blaenk opened this issue · comments

Trying out ^2.0.0-beta.0 (thanks for the work @szmarczak and @B4nan!).

I'd appreciate it if you would export PrepareRequestFunction, PrepareRequestFunctionOpts, and PrepareRequestFunctionResult from server.d.ts at the very least. I have code that would like these things typed.

Also PrepareRequestFunctionOpts should probably have optional fields? For example if username or password isn't necessary/doesn't exist.

For example if username or password isn't necessary/doesn't exist.

Then it's an empty string.