Closed as not planned
Description
⚙ Compilation target
es2017
⚙ Library
ESNext
Missing / Incorrect Definition
In the whatwg definition, window.parent
is nullable. whatwg/html#2123
The definition of window.parent
in this repository is not nullable.
readonly parent: WindowProxy;
BTW, the definition of window.top is nullable, which is inconsistent.
readonly top: WindowProxy | null;
Sample Code
readonly parent: WindowProxy;
Documentation Link
https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-window-object