You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason it is any now is that technically it returns a WindowProxy object, for which the XML spec does have a definition.
However according to the W3 spec:
As mentioned earlier, each browsing context has a WindowProxy object. This object is unusual in that it must proxy all operations to the Window object of the browsing context's active document. It is thus indistinguishable from that Window object in every way, except that it is not equal to it.
So it might be ok to use window instead in lib.d.ts
Activity
RyanCavanaugh commentedon Jan 11, 2016
Zhengbo Li (@zhengbli) can you confirm?
zhengbli commentedon Jan 11, 2016
The reason it is
anynow is that technically it returns aWindowProxyobject, for which the XML spec does have a definition.However according to the W3 spec:
So it might be ok to use
windowinstead inlib.d.ts