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

2.0.4 • Public • Published

Installation

npm install --save @types/react-sizes

Summary

This package contains type definitions for react-sizes (https://github.com/renatorib/react-sizes#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-sizes.

export interface Sizes {
    width: number;
    height: number;
}

export function WithSizes<SP extends object, P extends SP>(
    mapSizesToProps: (sizes: Sizes) => SP,
): (component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof SP>>;

export default WithSizes;

Additional Details

  • Last updated: Mon, 13 Jan 2025 16:02:31 GMT
  • Dependencies: none

Credits

These definitions were written by janKir, and Micah Stubbs.

/@types/react-sizes/

    Package Sidebar

    Install

    npm i @types/react-sizes

    Weekly Downloads

    1,216

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    3.33 kB

    Total Files

    5

    Last publish

    Collaborators

    • types