File tree 4 files changed +21
-2
lines changed 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ interface ComponentSize {
3
3
height : number
4
4
}
5
5
6
- export default function useComponentSize ( ) : ComponentSize
6
+ export default function useComponentSize < T = any > ( ref : React . RefObject < T > ) : ComponentSize
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ interface ComponentSize {
3
3
height: number,
4
4
}
5
5
6
- declare export default function useComponentSize( ): ComponentSize;
6
+ declare export default function useComponentSize<T>(ref: React.Ref<T> ): ComponentSize;
Original file line number Diff line number Diff line change 25
25
"react" : " ^16.7.0-alpha.0"
26
26
},
27
27
"devDependencies" : {
28
+ "@types/react" : " ^16.4.18" ,
28
29
"ava" : " ^0.25.0" ,
29
30
"browser-env" : " ^3.2.5" ,
30
31
"parcel" : " ^1.10.3" ,
Original file line number Diff line number Diff line change 624
624
version "10.12.0"
625
625
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.0.tgz#ea6dcbddbc5b584c83f06c60e82736d8fbb0c235"
626
626
627
+ " @types/prop-types@* " :
628
+ version "15.5.6"
629
+ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.6.tgz#9c03d3fed70a8d517c191b7734da2879b50ca26c"
630
+ integrity sha512-ZBFR7TROLVzCkswA3Fmqq+IIJt62/T7aY/Dmz+QkU7CaW2QFqAitCE8Ups7IzmGhcN1YWMBT4Qcoc07jU9hOJQ==
631
+
632
+ " @types/react@^16.4.18 " :
633
+ version "16.4.18"
634
+ resolved "https://registry.yarnpkg.com/@types/react/-/react-16.4.18.tgz#2e28a2e7f92d3fa7d6a65f2b73275c3e3138a13d"
635
+ integrity sha512-eFzJKEg6pdeaukVLVZ8Xb79CTl/ysX+ExmOfAAqcFlCCK5TgFDD9kWR0S18sglQ3EmM8U+80enjUqbfnUyqpdA==
636
+ dependencies :
637
+ " @types/prop-types" " *"
638
+ csstype "^2.2.0"
639
+
627
640
" @types/semver@^5.5.0 " :
628
641
version "5.5.0"
629
642
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.5.0.tgz#146c2a29ee7d3bae4bf2fcb274636e264c813c45"
2167
2180
dependencies :
2168
2181
cssom "0.3.x"
2169
2182
2183
+ csstype@^2.2.0 :
2184
+ version "2.5.7"
2185
+ resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.7.tgz#bf9235d5872141eccfb2d16d82993c6b149179ff"
2186
+ integrity sha512-Nt5VDyOTIIV4/nRFswoCKps1R5CD1hkiyjBE9/thNaNZILLEviVw9yWQw15+O+CpNjQKB/uvdcxFFOrSflY3Yw==
2187
+
2170
2188
currently-unhandled@^0.4.1 :
2171
2189
version "0.4.1"
2172
2190
resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
You can’t perform that action at this time.
0 commit comments