Resolve typing errors after TypeScript upgrade
This commit is contained in:
parent
ea706189a2
commit
84b1f2e6c6
11 changed files with 14 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue