Followup type-check fixes for bootstrapCrossSigning callback (#8753)

pull/28788/head^2
Faye Duxovni 2022-06-03 13:24:25 -04:00 committed by GitHub
parent 2f7f36ac85
commit 527da1c5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
});
};
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<void>): Promise<void> => {
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<{}>): Promise<void> => {
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
await makeRequest({
type: 'm.login.password',

View File

@ -91,7 +91,7 @@ export default class CreateCrossSigningDialog extends React.PureComponent<IProps
}
}
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<void>): Promise<void> => {
private doBootstrapUIAuth = async (makeRequest: (authData: any) => Promise<{}>): Promise<void> => {
if (this.state.canUploadKeysWithPasswordOnly && this.state.accountPassword) {
await makeRequest({
type: 'm.login.password',