|
@@ -25,7 +25,7 @@ class PokemonShow extends React.Component<RouteComponentProps<PassedRouteProps>,
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- public async componentDidMount(): Promise<any> {
|
|
|
|
|
|
|
+ public async componentDidMount(): Promise<void> {
|
|
|
try {
|
|
try {
|
|
|
const data = await Pokemon.get(this.props.match.params.id);
|
|
const data = await Pokemon.get(this.props.match.params.id);
|
|
|
this.setState({pokemon: data.data});
|
|
this.setState({pokemon: data.data});
|