Skip to content

Commit 7fe4325

Browse files
committed
Accept string using url.format
Closes #43
1 parent f3dc512 commit 7fe4325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6.0/node.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ declare module "url" {
14141414
}
14151415

14161416
export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url;
1417-
export function format(url: Url): string;
1417+
export function format(url: Url | string): string;
14181418
export function resolve(from: string, to: string): string;
14191419
}
14201420

0 commit comments

Comments
 (0)