Resolve typing errors after TypeScript upgrade

This commit is contained in:
J. Ryan Stinnett 2021-01-20 13:40:46 +00:00
parent ea706189a2
commit 84b1f2e6c6
11 changed files with 14 additions and 16 deletions

View file

@ -519,7 +519,7 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
private async tabCompleteName(event: React.KeyboardEvent) {
try {
await new Promise(resolve => this.setState({showVisualBell: false}, resolve));
await new Promise<void>(resolve => this.setState({showVisualBell: false}, resolve));
const {model} = this.props;
const caret = this.getCaret();
const position = model.positionForOffset(caret.offset, caret.atNodeEnd);