Remove Options index signature

This commit is contained in:
hensm
2019-02-27 17:54:06 +00:00
parent 8cef999afb
commit addd6821c4
2 changed files with 5 additions and 4 deletions

View File

@@ -326,7 +326,7 @@ class App extends Component<{}, OptionsAppState> {
const { target } = ev;
this.setState(({ options }) => {
options[target.name] = getInputValue(target);
options[target.name as keyof Options] = getInputValue(target);
return { options };
});
}