Enable strict mode for extension build

This commit is contained in:
hensm
2020-01-23 00:58:33 +00:00
parent 3553912584
commit 7f84b90431
59 changed files with 526 additions and 331 deletions

View File

@@ -23,7 +23,7 @@ interface EditableListItemState {
export default class EditableListItem extends Component<
EditableListItemProps, EditableListItemState> {
private input: HTMLInputElement;
private input: (HTMLInputElement | null) = null;
constructor (props: EditableListItemProps) {
super(props);
@@ -96,7 +96,7 @@ export default class EditableListItem extends Component<
editing: true
, editValue: this.props.text
}, () => {
this.input.focus();
this.input?.focus();
});
}