Recently I wanted to use a ResizeObserver
in my application. ResizeObserver
recently landed in all major browsers, but when you use it in TypeScript — at the time of this writing — ResizeObserver
won’t be recognized as a valid object (or constructor). So why is that?
↧
TypeScript: Augmenting global and lib.dom.d.ts
↧