que-etc / resize-observer-polyfill

A polyfill for the Resize Observer API
MIT License
1.75k stars 132 forks source link

Fixed definition file for newer TS versions #85

Open 4lolo opened 3 years ago

4lolo commented 3 years ago

In typescript 4.2 definition file causes error: Error: node_modules/resize-observer-polyfill/src/index.d.ts:19:18 - error TS2717: Subsequent property declarations must have the same type. Property 'contentRect' must be of type 'DOMRectReadOnly', but here has type 'DOMRectReadOnly'.

Declaring DOMRectReadOnly as global fixes that issue.

mcarriere commented 3 years ago

We also have this issue. Can we get this merged?

VilOstreiko commented 3 years ago

the same for us. having TS error using Angular 12. please review the issue @que-etc thank you!

lizraeli commented 3 years ago

This would solve the issue described in #83

centigrade-julian-lang commented 2 years ago

Hi, this branch is now open for quite some time - could this be merged somewhere near future? :)

nicoesiea commented 1 year ago

I have the same issue, could you please merge the fix and release a new version?