mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Enable TS strict mode in all templates and generally clean up TS references
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user