# @types/react-lifecycles-compat

> TypeScript definitions for react-lifecycles-compat

Latest version **3.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.4 |
| Published | 2023-11-07 |
| First published | 2019-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 3.0.4 (latest) — 2023-11-07
- 3.0.1 (ts2.8) — 2019-01-17
- 3.0.3 — 2023-10-18
- 3.0.2 — 2023-09-27
- 3.0.0 — 2019-01-14

## README

# Installation
> `npm install --save @types/react-lifecycles-compat`

# Summary
This package contains type definitions for react-lifecycles-compat (https://github.com/reactjs/react-lifecycles-compat#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-lifecycles-compat.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-lifecycles-compat/index.d.ts)
````ts
import * as React from "react";

export function polyfill<T extends React.ComponentType<any>>(
    Comp: T,
): T & { [K in keyof T]: T[K] };

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [bySabi Files](https://github.com/bySabi).

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