mirror of
https://github.com/denoland/deno.git
synced 2025-01-12 00:54:02 -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:
parent
f1dc054d52
commit
658e1e126b
2 changed files with 4 additions and 0 deletions
2
cli/tsc/dts/lib.dom.d.ts
vendored
2
cli/tsc/dts/lib.dom.d.ts
vendored
|
@ -22483,6 +22483,8 @@ interface URL {
|
||||||
declare var URL: {
|
declare var URL: {
|
||||||
prototype: URL;
|
prototype: URL;
|
||||||
new(url: string | URL, base?: string | URL): 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) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
|
||||||
createObjectURL(obj: Blob | MediaSource): string;
|
createObjectURL(obj: Blob | MediaSource): string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */
|
||||||
|
|
2
cli/tsc/dts/lib.webworker.d.ts
vendored
2
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -5559,6 +5559,8 @@ interface URL {
|
||||||
declare var URL: {
|
declare var URL: {
|
||||||
prototype: URL;
|
prototype: URL;
|
||||||
new(url: string | URL, base?: string | URL): 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) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL) */
|
||||||
createObjectURL(obj: Blob): string;
|
createObjectURL(obj: Blob): string;
|
||||||
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL) */
|
||||||
|
|
Loading…
Reference in a new issue