rooks
Version:
Collection of awesome react hooks
12 lines (11 loc) • 431 B
TypeScript
import type { DeepNullable } from "../types/utils";
type WindowDimensions = DeepNullable<Pick<Window, "innerHeight" | "innerWidth" | "outerHeight" | "outerWidth">>;
/**
* useWindowSize hook
* A hook that provides information of the dimensions of the window
*
* @returns Dimensions of the window
* @see https://rooks.vercel.app/docs/hooks/useWindowSize
*/
export declare function useWindowSize(): WindowDimensions;
export {};