1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

fix: add missing URL.canParse() types (#20244)

Reference:
https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static
This commit is contained in:
Asher Gomez 2023-08-23 17:31:13 +10:00 committed by Matt Mastracci
parent f1dc054d52
commit 658e1e126b
2 changed files with 4 additions and 0 deletions

View file

@ -22483,6 +22483,8 @@ interface URL {
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 | URL): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
createObjectURL(obj: Blob | MediaSource): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */

View file

@ -5559,6 +5559,8 @@ interface URL {
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 | URL): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
createObjectURL(obj: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */