Skip to content

Commit 26550ed

Browse files
author
infodusha
committed
Typings
1 parent 7fb9fd8 commit 26550ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React from 'react';
22

3-
interface size {
3+
interface Size {
44
readonly width: number | null;
55
readonly height: number | null;
66
}
77

8-
export function useSize<T>(ref: React.MutableRefObject<T>): size;
98
/**
109
* `useSize` returns a size object with `.width` and `.height` properties.
1110
* On first render their values are `null`.
1211
*
1312
* @version 16.8.0
1413
* @see https://github.com/infodusha/react-hook-size#readme
15-
*/
14+
*/
15+
export function useSize<T>(ref: React.MutableRefObject<T>): Size;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-hook-size",
3-
"version": "1.3.3",
3+
"version": "1.3.5",
44
"description": "React hook to handle DOM element size",
55
"main": "dist/index.js",
66
"homepage": "https://github.com/infodusha/react-hook-size#readme",

0 commit comments

Comments
 (0)