Skip to content

Commit 0e652b0

Browse files
committed
Node: rename URL types for clarity
1 parent 8ff1f29 commit 0e652b0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

types/node/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ declare module "child_process" {
21712171
}
21722172

21732173
declare module "url" {
2174-
export interface UrlObject {
2174+
export interface InputUrlObject {
21752175
auth?: string;
21762176
hash?: string;
21772177
host?: string;
@@ -2186,13 +2186,13 @@ declare module "url" {
21862186
slashes?: boolean;
21872187
}
21882188

2189-
export interface Url extends UrlObject {
2189+
export interface OutputUrlObject extends InputUrlObject {
21902190
port?: string;
21912191
}
21922192

2193-
export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url;
2193+
export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): OutputUrlObject;
21942194
export function format(URL: URL, options?: URLFormatOptions): string;
2195-
export function format(urlObject: UrlObject | string): string;
2195+
export function format(urlObject: InputUrlObject | string): string;
21962196
export function resolve(from: string, to: string): string;
21972197

21982198
export interface URLFormatOptions {

0 commit comments

Comments
 (0)