fix: use Url interface instead of URL class

This commit is contained in:
Mohammad Hasani
2018-02-04 21:11:58 +03:30
committed by GitHub
parent a436740d5d
commit 9fadb92bdc

View File

@@ -80,7 +80,7 @@ declare namespace got {
type GotStreamFn = (url: GotUrl, options?: GotOptions<string | null>) => GotEmitter & nodeStream.Duplex;
type GotUrl = string | http.RequestOptions | URL;
type GotUrl = string | http.RequestOptions | Url;
interface GotBodyOptions<E extends string | null> extends GotOptions<E> {
body?: string | Buffer | nodeStream.Readable;