diff --git a/types.d.ts b/types.d.ts index 9025bc9..af84295 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,4 +1,6 @@ -export = root__request; +// Imported from: https://github.com/soywiz/typescript-node-definitions/d.ts + +/// import caseless = require("caseless"); import stream = require("stream"); @@ -10,9 +12,7 @@ import net = require("net"); import tough = require("tough-cookie"); import { Url } from "url"; -declare function root__request(opts: any, ...args: any[]): any; - -declare namespace root__request { +declare namespace request { interface RequestAPI { defaults(options: TOptions): RequestAPI; defaults(options: RequiredUriUrl & TOptions): DefaultUriUrlRequestApi; @@ -391,5 +391,5 @@ declare namespace root__request { getCookies(uri: string | Url): Cookie[]; } } - -declare var request: root__request.RequestAPI; \ No newline at end of file +declare var request: request.RequestAPI; +export = request;