mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
fix: use Url interface instead of URL class
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user