Skip to content

Commit 8990e34

Browse files
committed
Simplify the type of window.URL
1 parent 66a1ef9 commit 8990e34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12961,7 +12961,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1296112961
toolbar: BarProp;
1296212962
top: Window;
1296312963
window: Window;
12964-
URL: {prototype: URL; new(url: string, base?: string): URL; createObjectURL(object: any, options?: ObjectURLOptions): string; revokeObjectURL(url: string): void;};
12964+
URL: typeof URL;
1296512965
alert(message?: any): void;
1296612966
blur(): void;
1296712967
cancelAnimationFrame(handle: number): void;

inputfiles/addedTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"interface": "Window",
5151
"exposeGlobally": false,
5252
"name": "URL",
53-
"type": "{prototype: URL; new(url: string, base?: string): URL; createObjectURL(object: any, options?: ObjectURLOptions): string; revokeObjectURL(url: string): void;}"
53+
"type": "typeof URL"
5454
},
5555
{
5656
"kind": "property",

0 commit comments

Comments
 (0)