@types/react-addons-shallow-compare
Version:
TypeScript definitions for react-addons-shallow-compare
33 lines (24 loc) • 1.1 kB
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-addons-shallow-compare/index.d.ts)
````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](https://npmjs.com/package/@types/react)
# Credits
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), and [Microsoft](https://microsoft.com).