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 ResizeObserver class is only available as a global declaration and not on the Window interface. I think it should also be available on the Window interface for at least two reasons:
The specification (https://drafts.csswg.org/resize-observer/#idl-index) says [Exposed=(Window)], which I’m guessing means that it is supposed to be on the Window interface (I’m actually surprised, isn’t the specification supposed to be automatically translated to Typescript declarations?)
For applications with several windows, it behaves differently depending on the window from which it is taken (see https://codepen.io/Latcarf/pen/RwdyLXr?editors=0010). So it would make a lot of sense to be able to do the following, which currently doesn’t typecheck as popup is of type Window.
The
ResizeObserver
class is only available as a global declaration and not on theWindow
interface. I think it should also be available on theWindow
interface for at least two reasons:[Exposed=(Window)]
, which I’m guessing means that it is supposed to be on theWindow
interface (I’m actually surprised, isn’t the specification supposed to be automatically translated to Typescript declarations?)popup
is of typeWindow
.The text was updated successfully, but these errors were encountered: