11 lines
294 B
TypeScript
11 lines
294 B
TypeScript
interface Options {
|
|
initialWidth?: number;
|
|
initialHeight?: number;
|
|
onChange?: (width: number, height: number) => void;
|
|
}
|
|
declare const useWindowSize: ({ initialWidth, initialHeight, onChange, }?: Options) => {
|
|
width: number;
|
|
height: number;
|
|
};
|
|
export default useWindowSize;
|