You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 545B

12345678910111213141516171819202122
  1. declare module 'https-proxy-agent' {
  2. import * as https from 'https';
  3. namespace HttpsProxyAgent {
  4. interface HttpsProxyAgentOptions {
  5. host: string;
  6. port: number | string;
  7. secureProxy?: boolean;
  8. headers?: {
  9. [key: string]: string;
  10. };
  11. [key: string]: any;
  12. }
  13. }
  14. // HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
  15. class HttpsProxyAgent extends https.Agent {
  16. constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions | string);
  17. }
  18. export = HttpsProxyAgent;
  19. }