Skip to content

Commit b2d7024

Browse files
committed
1 parent 71140db commit b2d7024

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
27052705
/**
27062706
* Contains information about the current URL.
27072707
*/
2708-
readonly location: Location;
2708+
location: Location | string;
27092709
msCapsLockWarningOff: boolean;
27102710
msCSSOMElementFloatMetrics: boolean;
27112711
/**
@@ -13112,7 +13112,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1311213112
readonly innerWidth: number;
1311313113
readonly isSecureContext: boolean;
1311413114
readonly length: number;
13115-
readonly location: Location;
13115+
location: Location | string;
1311613116
readonly locationbar: BarProp;
1311713117
readonly menubar: BarProp;
1311813118
readonly msContentScript: ExtensionScriptApis;
@@ -14515,7 +14515,7 @@ declare var innerHeight: number;
1451514515
declare var innerWidth: number;
1451614516
declare var isSecureContext: boolean;
1451714517
declare var length: number;
14518-
declare var location: Location;
14518+
declare var location: Location | string;
1451914519
declare var locationbar: BarProp;
1452014520
declare var menubar: BarProp;
1452114521
declare var msContentScript: ExtensionScriptApis;

inputfiles/overridingTypes.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
"name": "currentScript",
3333
"type": "HTMLScriptElement | SVGScriptElement | null"
3434
},
35+
{
36+
"kind": "property",
37+
"interface": "Document",
38+
"name": "location",
39+
"type": "Location | string"
40+
},
3541
{
3642
"kind": "method",
3743
"interface": "Document",
@@ -986,6 +992,12 @@
986992
"name": "opener",
987993
"type": "any"
988994
},
995+
{
996+
"kind": "property",
997+
"interface": "Window",
998+
"name": "location",
999+
"type": "Location | string"
1000+
},
9891001
{
9901002
"kind": "method",
9911003
"interface": "History",

0 commit comments

Comments
 (0)