mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[react-addons-shallow-compare] Allow ES6 import syntax
This commit is contained in:
parent
19790b8966
commit
e7d45e118f
6
react-addons-shallow-compare/index.d.ts
vendored
6
react-addons-shallow-compare/index.d.ts
vendored
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user