mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
Fix url.format() param type.
This commit is contained in:
13
node/node.d.ts
vendored
13
node/node.d.ts
vendored
@@ -599,8 +599,19 @@ declare module "url" {
|
||||
slashes: boolean;
|
||||
}
|
||||
|
||||
export interface UrlOptions {
|
||||
protocol?: string;
|
||||
auth?: string;
|
||||
hostname?: string;
|
||||
port?: string;
|
||||
host?: string;
|
||||
pathname?: string;
|
||||
search?: string;
|
||||
query?: any;
|
||||
}
|
||||
|
||||
export function parse(urlStr: string, parseQueryString?: boolean , slashesDenoteHost?: boolean ): Url;
|
||||
export function format(url: Url): string;
|
||||
export function format(url: UrlOptions): string;
|
||||
export function resolve(from: string, to: string): string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user