File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
- interface size {
3
+ interface Size {
4
4
readonly width : number | null ;
5
5
readonly height : number | null ;
6
6
}
7
7
8
- export function useSize < T > ( ref : React . MutableRefObject < T > ) : size ;
9
8
/**
10
9
* `useSize` returns a size object with `.width` and `.height` properties.
11
10
* On first render their values are `null`.
12
11
*
13
12
* @version 16.8.0
14
13
* @see https://github.com/infodusha/react-hook-size#readme
15
- */
14
+ */
15
+ export function useSize < T > ( ref : React . MutableRefObject < T > ) : Size ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-hook-size" ,
3
- "version" : " 1.3.3 " ,
3
+ "version" : " 1.3.5 " ,
4
4
"description" : " React hook to handle DOM element size" ,
5
5
"main" : " dist/index.js" ,
6
6
"homepage" : " https://github.com/infodusha/react-hook-size#readme" ,
You can’t perform that action at this time.
0 commit comments