# @types/react-sizes

> TypeScript definitions for react-sizes

Latest version **2.0.4** (published 2025-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-sizes
pnpm add @types/react-sizes
yarn add @types/react-sizes
bun add @types/react-sizes
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2025-01-13 |
| First published | 2019-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51448 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-sizes
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-sizes
- npm.io page: https://npm.io/package/@types/react-sizes

## Recent versions

- 2.0.4 (latest) — 2025-01-13
- 2.0.3 (ts4.5) — 2023-11-07
- 2.0.0 (ts3.5) — 2019-07-09
- 2.0.2 — 2023-10-18
- 2.0.1 — 2023-09-27

## README

# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-sizes/index.d.ts)
````ts
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](https://github.com/janKir), and [Micah Stubbs](https://github.com/micahstubbs).

---
_Source: https://npm.io/package/@types/react-sizes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
