@types/react-addons-shallow-compare
TypeScript icon, indicating that this package has built-in type declarations

0.14.25 • Public • Published

Installation

npm install --save @types/react-addons-shallow-compare

Summary

This package contains type definitions for react-addons-shallow-compare (http://facebook.github.io/react/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-addons-shallow-compare.

index.d.ts

import { Component } from "react";

export = shallowCompare;

// workaround to allow ES6 import syntax
// https://github.com/Microsoft/TypeScript/issues/5073
declare namespace shallowCompare {}

declare function shallowCompare<P, S>(
    component: Component<P, S>,
    nextProps: P,
    nextState: S,
): boolean;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Asana, AssureSign, and Microsoft.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-addons-shallow-compare

Weekly Downloads

39,994

Version

0.14.25

License

MIT

Unpacked Size

3.6 kB

Total Files

5

Last publish

Collaborators

  • types