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

3.0.4 • Public • Published

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

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

Credits

These definitions were written by bySabi Files.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.4
    113,857
  • 3.0.3
    6,439
  • 3.0.2
    2,744
  • 3.0.1
    36,591
  • 3.0.0
    0

Package Sidebar

Install

npm i @types/react-lifecycles-compat

Weekly Downloads

159,631

Version

3.0.4

License

MIT

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • types