Templates: update React's component's State and Property type

This commit is contained in:
Stephan
2017-05-04 21:55:58 +02:00
committed by Steve Sanderson
parent 214a908c92
commit f2260d572f
10 changed files with 10 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ type WeatherForecastProps =
& typeof WeatherForecastsState.actionCreators // ... plus action creators we've requested
& { params: { startDateIndex: string } }; // ... plus incoming routing parameters
class FetchData extends React.Component<WeatherForecastProps, void> {
class FetchData extends React.Component<WeatherForecastProps, {}> {
componentWillMount() {
// This method runs when the component is first added to the page
let startDateIndex = parseInt(this.props.params.startDateIndex) || 0;