Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
12 changes: 12 additions & 0 deletions inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"name": "currentScript",
"type": "HTMLScriptElement | SVGScriptElement | null"
},
{
"kind": "property",
"interface": "Document",
"name": "location",
"type": "Location | string"
},
{
"kind": "method",
"interface": "Document",
Expand Down Expand Up @@ -986,6 +992,12 @@
"name": "opener",
"type": "any"
},
{
"kind": "property",
"interface": "Window",
"name": "location",
"type": "Location | string"
},
{
"kind": "method",
"interface": "History",
Expand Down