npm.io
0.14.25 • Published 2 years ago

@types/react-addons-shallow-compare

Licence
MIT
Version
0.14.25
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/react

Credits

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