[react-addons-shallow-compare] Allow ES6 import syntax

This commit is contained in:
Andrej Hazucha 2016-10-19 13:33:36 +02:00
parent 19790b8966
commit e7d45e118f

View File

@ -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 <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
// 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<P, S>(
component: Component<P, S>,
nextProps: P,