Update the `URL.canParse` and `URL.parse` types (#1755)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
This commit is contained in:
Родитель
86b6edc45f
Коммит
2939d4ffe6
|
@ -1016,9 +1016,9 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
|
||||
parse(url: string | URL, base?: string): URL | null;
|
||||
parse(url: string | URL, base?: string | URL): URL | null;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
||||
|
|
|
@ -22356,11 +22356,11 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||
createObjectURL(obj: Blob | MediaSource): string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
|
||||
parse(url: string | URL, base?: string): URL | null;
|
||||
parse(url: string | URL, base?: string | URL): URL | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
||||
revokeObjectURL(url: string): void;
|
||||
};
|
||||
|
|
|
@ -5265,9 +5265,9 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
|
||||
parse(url: string | URL, base?: string): URL | null;
|
||||
parse(url: string | URL, base?: string | URL): URL | null;
|
||||
};
|
||||
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
|
||||
|
|
|
@ -5074,11 +5074,11 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||
createObjectURL(obj: Blob): string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
|
||||
parse(url: string | URL, base?: string): URL | null;
|
||||
parse(url: string | URL, base?: string | URL): URL | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
||||
revokeObjectURL(url: string): void;
|
||||
};
|
||||
|
|
|
@ -5644,11 +5644,11 @@ declare var URL: {
|
|||
prototype: URL;
|
||||
new(url: string | URL, base?: string | URL): URL;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
|
||||
canParse(url: string | URL, base?: string): boolean;
|
||||
canParse(url: string | URL, base?: string | URL): boolean;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
|
||||
createObjectURL(obj: Blob): string;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
|
||||
parse(url: string | URL, base?: string): URL | null;
|
||||
parse(url: string | URL, base?: string | URL): URL | null;
|
||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
|
||||
revokeObjectURL(url: string): void;
|
||||
};
|
||||
|
|
|
@ -2061,6 +2061,34 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"methods": {
|
||||
"method": {
|
||||
"canParse": {
|
||||
"signature": {
|
||||
"0": {
|
||||
"param": [
|
||||
{
|
||||
"name": "base",
|
||||
"additionalTypes": ["URL"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"parse": {
|
||||
"signature": {
|
||||
"0": {
|
||||
"param": [
|
||||
{
|
||||
"name": "base",
|
||||
"additionalTypes": ["URL"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Client": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче