UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

12 lines 485 B
import type { DeepNullable } from "@/types/utils"; declare 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://react-hooks.org/docs/useWindowSize */ export declare function useWindowSize(): WindowDimensions; export {}; //# sourceMappingURL=useWindowSize.d.ts.map