[React.14] Move shallowCompare into __React.__Addons namespace

This commit is contained in:
Vincent Siao
2015-11-09 18:24:49 -08:00
parent 45d85934f1
commit bef72125ab
+10 -2
View File
@@ -5,7 +5,15 @@
/// <reference path="react.d.ts" />
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" {
function shallowCompare<P, S>(component: __React.Component<P, S>, nextProps: P, nextState: S): boolean;
export = shallowCompare;
export = __React.__Addons.shallowCompare;
}