TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

getBoundingClientRect().toJSON() returns any

Open Juraj-Masiar opened this issue 4 years ago • 2 comments

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

Juraj-Masiar avatar Dec 03 '21 12:12 Juraj-Masiar

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

Bashamega avatar Apr 26 '25 07:04 Bashamega

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.

saschanaz avatar Apr 26 '25 08:04 saschanaz