que-etc / resize-observer-polyfill

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

Update index.d.ts #81

Open albancreton opened 3 years ago

albancreton commented 3 years ago

RE: #80

Updating DOMRectReadOnly based on the declaration in typescript's lib.dom.

garronej commented 3 years ago

go go go

vilbergs commented 3 years ago

It seems that ResizeObserverEntry is out of sync as well, it's missing the following properties. Perhaps this PR could incorporate that.

interface ResizeObserverEntry {
    readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
    readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
    ...
}

EDIT:

My bad... These are not implemented in the package yet, as per https://github.com/que-etc/resize-observer-polyfill/issues/77

cascornelissen commented 3 years ago

Pinging @que-etc on the off change that he still logs into his account regularly/reads his email. We would love to get this merged and published as it's blocking in one of our projects.

davidnormo commented 3 years ago

I've emailed @que-etc directly incase he's disabled his github email notifications