1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -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 GitHub
parent 9b01307704
commit af1b794e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) */