-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOMRectReadOnly interface type miss toJSON() method #53
Comments
would be great to also export your version of |
I've got a function that I was trying to pass
Argument of type "DOMRectReadOnly" is not assignable to parameter of the type "DOMRectReadOnly" But yeah, either just having this package use TypeScript's built-in |
This unique line solves the following error when updating for newer TS versions: 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'. It is related with issues que-etc#80, que-etc#53 and que-etc#73.
Trying to
contentRect
property with right type, but nativeDOMRectReadOnly
has atoJSON
method that your interface doesn't have, this results into a type mismatch.The text was updated successfully, but these errors were encountered: