diff --git a/types/superagent/index.d.ts b/types/superagent/index.d.ts index d1b136af5f..315248209c 100644 --- a/types/superagent/index.d.ts +++ b/types/superagent/index.d.ts @@ -9,6 +9,7 @@ // Lukas Elmer // Jesse Rogers // Chris Arnesen +// Anders Kindberg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 @@ -16,7 +17,7 @@ /// import * as fs from 'fs'; -import * as https from 'https'; +import * as http from 'http'; import * as stream from 'stream'; import * as cookiejar from 'cookiejar'; @@ -38,7 +39,7 @@ declare const request: request.SuperAgentStatic; declare namespace request { interface SuperAgentRequest extends Request { - agent(agent?: https.Agent): this; + agent(agent?: http.Agent): this; cookies: string; method: string;