node-modules / agentkeepalive

Support keepalive http agent.
MIT License
579 stars 57 forks source link

TypeScript https agent error #71

Closed AndrewLeedham closed 5 years ago

AndrewLeedham commented 5 years ago

I am getting a TS error when using agentkeepalive with got. It seems the index.d.ts file is differnet from the implementation. image

The TS decleration seems to imply HttpsClient extends HttpClient which intern extends http.Agent, but it seems they are seperate as HttpsClient extends https.Agent and HttpClient extends http.Agent