Skip to content
Merged
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
14 changes: 12 additions & 2 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17230,7 +17230,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
readonly pageXOffset: number;
/** @deprecated This is a legacy alias of `scrollY`. */
readonly pageYOffset: number;
readonly parent: WindowProxy | null;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
readonly parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*/
Expand Down Expand Up @@ -18294,7 +18299,12 @@ declare var outerWidth: number;
declare var pageXOffset: number;
/** @deprecated This is a legacy alias of `scrollY`. */
declare var pageYOffset: number;
declare var parent: WindowProxy | null;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
declare var parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*/
Expand Down
9 changes: 9 additions & 0 deletions inputfiles/comments.json
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,15 @@
}
}
}
},
"Window": {
"properties": {
"property": {
"parent": {
"comment" : "/**\n * Refers to either the parent WindowProxy, or itself.\n *\n * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.\n */"
}
}
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@
},
"window": {
"overrideType": "Window & typeof globalThis"
},
"parent": {
"nullable": false
}
}
},
Expand Down