From e7d45e118f78d5980dbd5d67afffebccf76c29fb Mon Sep 17 00:00:00 2001 From: Andrej Hazucha Date: Wed, 19 Oct 2016 13:33:36 +0200 Subject: [PATCH] [react-addons-shallow-compare] Allow ES6 import syntax --- react-addons-shallow-compare/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,