-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathURL.d.mts
40 lines (40 loc) · 1.15 KB
/
URL.d.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { URLSearchParams } from "./URLSearchParams.mts";
export declare class URL {
#private;
constructor(url: string, base?: string);
get hash(): string;
set hash(value: string);
get host(): string;
set host(value: string);
get hostname(): string;
set hostname(value: string);
get href(): string;
set href(value: string);
get origin(): string;
get password(): string;
set password(value: string);
get pathname(): string;
set pathname(value: string);
get port(): string;
set port(value: string);
get protocol(): string;
set protocol(value: string);
get search(): string;
set search(value: string);
get searchParams(): URLSearchParams;
get username(): string;
set username(value: string);
static parse: (url: string, base?: string) => URL;
/**
* Returns the string representation of the URL.
*
* @returns {string} The href of the URL.
*/
toString: () => string;
/**
* Converts the URL object properties to a JSON string.
*
* @returns {string} A JSON string representation of the URL object.
*/
toJSON: () => string;
}