@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.4699ts5.5
2.0.4699ts5.8
2.0.4699latest
2.0.4699ts5.3
2.0.4699ts5.0
2.0.4699ts5.1
2.0.4699ts5.2
2.0.4699ts5.4
2.0.4699ts5.7
2.0.4699ts5.6
2.0.4699ts5.9
2.0.0493ts3.5
2.0.0493ts3.6
2.0.0493ts3.7
2.0.0493ts3.8
2.0.0493ts3.9
2.0.0493ts4.0
2.0.0493ts4.1
2.0.0493ts4.2
2.0.0493ts4.3
2.0.0493ts4.4
2.0.356ts4.5
2.0.356ts4.6
2.0.356ts4.7
2.0.356ts4.8
2.0.356ts4.9

Version History

VersionDownloads (Last 7 Days)Published
2.0.4699
2.0.356
2.0.20
2.0.10
2.0.0493

Package Sidebar

Install

npm i @types/react-sizes

Weekly Downloads

1,248

Version

2.0.4

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • types