We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8782515 commit b6c2a3fCopy full SHA for b6c2a3f
index.d.ts
@@ -3,4 +3,8 @@ interface ComponentSize {
3
height: number
4
}
5
6
-export default function useComponentSize<T = any>(ref: React.RefObject<T>): ComponentSize
+interface ComponentSizeOptions {
7
+ ResizeObserver?: ResizeObserver;
8
+}
9
+
10
+export default function useComponentSize<T = any>(ref: React.RefObject<T>, opts?: ComponentSizeOptions): ComponentSize
0 commit comments