From 9fadb92bdcc8a79e3532583676b82f7fdf5dd74c Mon Sep 17 00:00:00 2001 From: Mohammad Hasani <20781126+brodmann@users.noreply.github.com> Date: Sun, 4 Feb 2018 21:11:58 +0330 Subject: [PATCH] fix: use Url interface instead of URL class --- types/got/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/got/index.d.ts b/types/got/index.d.ts index f76a907b7d..30a5b2c0be 100644 --- a/types/got/index.d.ts +++ b/types/got/index.d.ts @@ -80,7 +80,7 @@ declare namespace got { type GotStreamFn = (url: GotUrl, options?: GotOptions) => GotEmitter & nodeStream.Duplex; - type GotUrl = string | http.RequestOptions | URL; + type GotUrl = string | http.RequestOptions | Url; interface GotBodyOptions extends GotOptions { body?: string | Buffer | nodeStream.Readable;