Closed
Description
TypeScript Version: 2.0.3
Typescript 2.0.3 has a lot of readonly stuff in lib.d.ts.
I am surprised that only height and width is readonly in ClientRect definition.
interface ClientRect {
bottom: number;
readonly height: number;
left: number;
right: number;
top: number;
readonly width: number;
}
Is this an error?
Mozillas response of getBoundingClientRect is the other way round:
all but height/width readonly (if i can trust FireBug) and has added x, y
Sidenote: ClientRect has been renamed to DOMRect