diff --git a/package.json b/package.json index 394d2d8..a1b5e31 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "source-map-loader": "0.1.5", "ts-loader": "^0.8.2", "tslint": "^3.14.0", - "typescript": "^1.8.10", + "typescript": "2.0.3", "typings": "1.3.2", "webpack": "^1.13.1" } diff --git a/src/components/counter.tsx b/src/components/counter.tsx index a22af36..94c81f8 100644 --- a/src/components/counter.tsx +++ b/src/components/counter.tsx @@ -29,7 +29,7 @@ const mapDispatchToProps = (dispatch: redux.Dispatch): ConnectedDispa class CounterComponent extends React.Component { - _onClickIncrement = (e: Event) => { + _onClickIncrement = (e: React.SyntheticEvent) => { e.preventDefault() this.props.increment(1) }