UNPKG
@jay19950328/react-hooks
Version:
latest (1.0.0)
1.0.0
0.2.0
0.1.2
0.1.1
0.1.0
0.0.2
react hooks
github.com/Jay0328/react-hooks
Jay0328/react-hooks
@jay19950328/react-hooks
/
useWindowSize.d.ts
9 lines
(8 loc)
•
212 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
interface
WindowSize
{
width
:
number
;
height
:
number
; }
export
default
function
useWindowSize
(
{ width, height }?: { width?:
number
|
undefined
; height?:
number
|
undefined
; }
):
WindowSize
;