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

@ -194,7 +194,7 @@ export default class RegistrationForm extends React.PureComponent<IProps, IState
// Validation and state updates are async, so we need to wait for them to complete
// first. Queue a `setState` callback and wait for it to resolve.
await new Promise(resolve => this.setState({}, resolve));
await new Promise<void>(resolve => this.setState({}, resolve));
if (this.allFieldsValid()) {
return true;