mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
fix: use Url interface instead of URL class
This commit is contained in:
2
types/got/index.d.ts
vendored
2
types/got/index.d.ts
vendored
@@ -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