-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta: fix
resize-observer-polyfill
types (#4994)
The upstream package is defining its own types which are incompatible with TS built-in DOM types.
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
.yarn/patches/resize-observer-polyfill-npm-1.5.1-603120e8a0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/src/index.d.ts b/src/index.d.ts | ||
index 74aacc0526ff554e9248c3f6fb44c353b5465efc..1b236d215a9db4cbc1c83f4d8bce24add202483e 100644 | ||
--- a/src/index.d.ts | ||
+++ b/src/index.d.ts | ||
@@ -1,14 +1,3 @@ | ||
-interface DOMRectReadOnly { | ||
- readonly x: number; | ||
- readonly y: number; | ||
- readonly width: number; | ||
- readonly height: number; | ||
- readonly top: number; | ||
- readonly right: number; | ||
- readonly bottom: number; | ||
- readonly left: number; | ||
-} | ||
- | ||
declare global { | ||
interface ResizeObserverCallback { | ||
(entries: ResizeObserverEntry[], observer: ResizeObserver): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters