resize-observer-polyfill icon indicating copy to clipboard operation
resize-observer-polyfill copied to clipboard

Fixed definition file for newer TS versions

Open 4lolo opened this issue 3 years ago • 5 comments

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.

4lolo avatar Jun 02 '21 07:06 4lolo

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

mcarriere avatar Jun 17 '21 00:06 mcarriere

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

VilOstreiko avatar Jul 21 '21 09:07 VilOstreiko

This would solve the issue described in #83

lizraeli avatar Jul 28 '21 01:07 lizraeli

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

centigrade-julian-lang avatar May 09 '22 16:05 centigrade-julian-lang

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

nicoesiea avatar Nov 25 '22 13:11 nicoesiea