diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 7f716902c..536e12ea7 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2705,7 +2705,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven /** * Contains information about the current URL. */ - readonly location: Location; + location: Location | string; msCapsLockWarningOff: boolean; msCSSOMElementFloatMetrics: boolean; /** @@ -13112,7 +13112,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window readonly innerWidth: number; readonly isSecureContext: boolean; readonly length: number; - readonly location: Location; + location: Location | string; readonly locationbar: BarProp; readonly menubar: BarProp; readonly msContentScript: ExtensionScriptApis; @@ -14515,7 +14515,7 @@ declare var innerHeight: number; declare var innerWidth: number; declare var isSecureContext: boolean; declare var length: number; -declare var location: Location; +declare var location: Location | string; declare var locationbar: BarProp; declare var menubar: BarProp; declare var msContentScript: ExtensionScriptApis; diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index c1236aa4f..dee1cf96f 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -32,6 +32,12 @@ "name": "currentScript", "type": "HTMLScriptElement | SVGScriptElement | null" }, + { + "kind": "property", + "interface": "Document", + "name": "location", + "type": "Location | string" + }, { "kind": "method", "interface": "Document", @@ -986,6 +992,12 @@ "name": "opener", "type": "any" }, + { + "kind": "property", + "interface": "Window", + "name": "location", + "type": "Location | string" + }, { "kind": "method", "interface": "History",