npm install --save @types/react-window-size
This package contains type definitions for react-window-size (https://github.com/finnfiddle/react-window-size).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-window-size.
import { ComponentType } from "react";
declare namespace windowSize {
interface WindowSizeProps {
windowHeight: number;
windowWidth: number;
}
}
declare function windowSize<T>(
ComposedComponent: ComponentType<T & windowSize.WindowSizeProps>,
): ComponentType<T>;
export = windowSize;
- Last updated: Mon, 11 Nov 2024 18:36:31 GMT
- Dependencies: @types/react
These definitions were written by Jake Richards.