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

This commit is contained in:
Vincent Siao
2015-11-09 18:01:35 -08:00
parent 45d85934f1
commit bef72125ab

View File

@@ -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;
}