diff --git a/react/react-addons-tests.ts b/react/react-addons-tests.ts index 6976d9959..ff01806c5 100644 --- a/react/react-addons-tests.ts +++ b/react/react-addons-tests.ts @@ -57,9 +57,10 @@ var ClassicComponent: React.ClassicComponentClass = seconds: this.props.foo }; }, - reset: () => { - this.replaceState(this.getInitialState()); - }, + // NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590 + // reset: () => { + // this.replaceState(this.getInitialState()); + // }, render: () => { return React.DOM.div(null, React.DOM.input({ @@ -71,32 +72,32 @@ var ClassicComponent: React.ClassicComponentClass = class ModernComponent extends React.Component implements React.ChildContextProvider { - + static propTypes: React.ValidationMap = { foo: React.PropTypes.number } - + static contextTypes: React.ValidationMap = { someValue: React.PropTypes.string } - + static childContextTypes: React.ValidationMap = { someOtherValue: React.PropTypes.string } - + context: Context; - + getChildContext() { return { someOtherValue: 'foo' } } - + state = { inputValue: this.context.someValue, seconds: this.props.foo } - + reset() { this.setState({ inputValue: this.context.someValue, @@ -105,7 +106,7 @@ class ModernComponent extends React.Component } private _input: React.HTMLComponent; - + render() { return React.DOM.div(null, React.DOM.input({