Skip to content

Commit b430aa3

Browse files
authored
fix(dom): intersect defaultView with globalThis (#820)
1 parent c754ff2 commit b430aa3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4437,7 +4437,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44374437
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
44384438
*/
44394439
readonly currentScript: HTMLOrSVGScriptElement | null;
4440-
readonly defaultView: WindowProxy | null;
4440+
readonly defaultView: (WindowProxy & typeof globalThis) | null;
44414441
/**
44424442
* Sets or gets a value that indicates whether the document can be edited.
44434443
*/

inputfiles/overridingTypes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,10 @@
596596
},
597597
"properties": {
598598
"property": {
599+
"defaultView": {
600+
"name": "defaultView",
601+
"override-type": "(WindowProxy & typeof globalThis) | null"
602+
},
599603
"documentElement": {
600604
"name": "documentElement",
601605
"override-type": "HTMLElement",

0 commit comments

Comments
 (0)