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.