diff --git a/react-addons-shallow-compare/index.d.ts b/react-addons-shallow-compare/index.d.ts index 7ffca6eefd..62e4297162 100644 --- a/react-addons-shallow-compare/index.d.ts +++ b/react-addons-shallow-compare/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for React v0.14 (react-addons-css-transition-group) +// Type definitions for React v0.14 (react-addons-shallow-compare) // Project: http://facebook.github.io/react/ // Definitions by: Asana , AssureSign , Microsoft // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -7,6 +7,10 @@ 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( component: Component, nextProps: P,