Skip to content

Commit e490e44

Browse files
committed
flow typings (though idk if this is correct)
1 parent b6c2a3f commit e490e44

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js.flow

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-
declare export default function useComponentSize<T>(ref: React.Ref<T>): ComponentSize;
6+
interface ComponentSizeOptions {
7+
ResizeObserver?: ResizeObserver;
8+
}
9+
10+
declare export default function useComponentSize<T>(ref: React.Ref<T>, opts?: ComponentSizeOptions): ComponentSize;

0 commit comments

Comments
 (0)