@types/react-window-size
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

Installation

npm install --save @types/react-window-size

Summary

This package contains type definitions for react-window-size (https://github.com/finnfiddle/react-window-size).

Details

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;

Additional Details

  • Last updated: Mon, 11 Nov 2024 18:36:31 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Jake Richards.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/react-window-size

    Weekly Downloads

    622

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    3.37 kB

    Total Files

    5

    Last publish

    Collaborators

    • types