Skip to content

getBoundingClientRect().toJSON() returns any #1222

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

Open
Juraj-Masiar opened this issue Dec 3, 2021 · 2 comments
Open

getBoundingClientRect().toJSON() returns any #1222

Juraj-Masiar opened this issue Dec 3, 2021 · 2 comments

Comments

@Juraj-Masiar
Copy link

Screenshot 2021-12-03 12 52 13

DOMRect
https://developer.mozilla.org/en-US/docs/Web/API/DOMRect#methods
image

DOMPointReadOnly.toJSON()
https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/toJSON

@Bashamega
Copy link
Contributor

Hello @saschanaz
Can i work on this?
I will update it to be DOMPoint | DOMPointReadOnly instead of any

@saschanaz
Copy link
Contributor

It's DOMRect, but neither works because here we only need members and no methods. We'll have to get a new interface for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants