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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/react-lifecycles-compat

    Weekly Downloads

    163,576

    Version

    3.0.4

    License

    MIT

    Unpacked Size

    3.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • types