mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
[React.14] Move shallowCompare into __React.__Addons namespace
This commit is contained in:
14
react/react-addons-shallow-compare.d.ts
vendored
14
react/react-addons-shallow-compare.d.ts
vendored
@@ -5,7 +5,15 @@
|
||||
|
||||
/// <reference path="react.d.ts" />
|
||||
|
||||
declare module "react-addons-shallow-compare" {
|
||||
function shallowCompare<P, S>(component: __React.Component<P, S>, nextProps: P, nextState: S): boolean;
|
||||
export = shallowCompare;
|
||||
declare namespace __React {
|
||||
namespace __Addons {
|
||||
export function shallowCompare<P, S>(
|
||||
component: __React.Component<P, S>,
|
||||
nextProps: P,
|
||||
nextState: S): boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "react-addons-shallow-compare" {
|
||||
export = __React.__Addons.shallowCompare;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user