Enable TS strict mode in all templates and generally clean up TS references

This commit is contained in:
Steve Sanderson
2017-07-13 10:11:59 +01:00
parent b8c006a3e9
commit 9528dd7432
14 changed files with 27 additions and 38 deletions

View File

@@ -1,4 +1,5 @@
import * as React from 'react';
import { RouteComponentProps } from 'react-router';
import 'isomorphic-fetch';
interface FetchDataExampleState {
@@ -6,7 +7,7 @@ interface FetchDataExampleState {
loading: boolean;
}
export class FetchData extends React.Component<{}, FetchDataExampleState> {
export class FetchData extends React.Component<RouteComponentProps<{}>, FetchDataExampleState> {
constructor() {
super();
this.state = { forecasts: [], loading: true };