diff --git a/react/react-global.d.ts b/react/react-global.d.ts
index f8b376355..58ff14f39 100644
--- a/react/react-global.d.ts
+++ b/react/react-global.d.ts
@@ -215,6 +215,8 @@ declare module React {
interface ComponentSpec
extends Mixin
{
render(): ReactElement;
+
+ [propertyName: string]: any;
}
//
diff --git a/react/react-tests.ts b/react/react-tests.ts
index a4d2c4f7a..fbd1cb516 100644
--- a/react/react-tests.ts
+++ b/react/react-tests.ts
@@ -41,24 +41,24 @@ var container: Element;
var ClassicComponent: React.ClassicComponentClass =
React.createClass({
- getDefaultProps: () => {
+ getDefaultProps() {
return {
hello: undefined,
world: "peace",
foo: undefined,
- bar: undefined
+ bar: undefined,
};
},
- getInitialState: () => {
+ getInitialState() {
return {
inputValue: this.context.someValue,
seconds: this.props.foo
};
},
- reset: () => {
+ reset() {
this.replaceState(this.getInitialState());
},
- render: () => {
+ render() {
return React.DOM.div(null,
React.DOM.input({
ref: input => this._input = input,
diff --git a/react/react.d.ts b/react/react.d.ts
index 218c6c94a..671b23784 100644
--- a/react/react.d.ts
+++ b/react/react.d.ts
@@ -215,6 +215,8 @@ declare module __React {
interface ComponentSpec extends Mixin
{
render(): ReactElement;
+
+ [propertyName: string]: any;
}
//