Skip to content

Commit

Permalink
Update index.d.ts to avoid erros with new TS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonastieppo committed Jan 27, 2023
1 parent 4a14845 commit 7b76b34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interface DOMRectReadOnly {
readonly right: number;
readonly bottom: number;
readonly left: number;
toJSON(): any;
}

declare global {
Expand Down

0 comments on commit 7b76b34

Please sign in to comment.