UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
useSize
/
index.d.ts
8 lines
(7 loc)
•
192 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
type
{
BasicTarget
}
from
'../utils/dom'
;
declare
type
Size
= {
width
?:
number
;
height
?:
number
; };
declare
function
useSize
(
target
:
BasicTarget
):
Size
;
export
default
useSize;