Skip to content

Commit b6c2a3f

Browse files
committed
typescript typings
1 parent 8782515 commit b6c2a3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ interface ComponentSize {
33
height: number
44
}
55

6-
export default function useComponentSize<T = any>(ref: React.RefObject<T>): ComponentSize
6+
interface ComponentSizeOptions {
7+
ResizeObserver?: ResizeObserver;
8+
}
9+
10+
export default function useComponentSize<T = any>(ref: React.RefObject<T>, opts?: ComponentSizeOptions): ComponentSize

0 commit comments

Comments
 (0)