Fix most eslint warnings

This commit is contained in:
uwap 2018-01-19 21:52:53 +01:00
parent 196aa44895
commit 8d2d39cb0e
6 changed files with 16 additions and 12 deletions

View file

@ -25,7 +25,7 @@ export type AppState = {
selectedControl: ?Control,
drawerOpened: boolean,
mqttState: State,
mqttSend: (topic: string, value: any) => void,
mqttSend: (topic: string, value: Actual) => void,
mqttConnected: boolean,
};
@ -91,7 +91,7 @@ class App extends React.Component<AppProps & Classes, AppState> {
this.setState({drawerOpened: false});
}
changeState(topic: string, value: any) {
changeState(topic: string, value: Actual) {
const rawTopic = this.props.config.topics[topic].command;
if (rawTopic == null) {
return;