Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 25, 2019
1 parent eecea74 commit 4296770
Show file tree
Hide file tree
Showing 3 changed files with 569 additions and 538 deletions.
36 changes: 18 additions & 18 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
declare module 'https-proxy-agent' {
import * as https from 'https'
import * as https from 'https';

namespace HttpsProxyAgent {
interface HttpsProxyAgentOptions {
host: string
port: number | string
secureProxy?: boolean
headers?: {
[key: string]: string
}
[key: string]: any
}
}

// HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
class HttpsProxyAgent extends https.Agent {
constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions | string)
}
namespace HttpsProxyAgent {
interface HttpsProxyAgentOptions {
host: string;
port: number | string;
secureProxy?: boolean;
headers?: {
[key: string]: string;
};
[key: string]: any;
}
}

export = HttpsProxyAgent
// HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
class HttpsProxyAgent extends https.Agent {
constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions | string);
}

export = HttpsProxyAgent;
}
Loading

0 comments on commit 4296770

Please sign in to comment.