1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

fix some types

This commit is contained in:
Hubert Chathi
2021-05-18 18:40:36 -04:00
parent 9e6b72bf38
commit 3ec89a89df

View File

@@ -166,7 +166,7 @@ export class BackupManager {
* one of the user's verified devices, start backing up * one of the user's verified devices, start backing up
* to it. * to it.
*/ */
async checkAndStart(): Promise<{backupInfo: any, trustInfo: TrustInfo}> { async checkAndStart(): Promise<{backupInfo: BackupInfo, trustInfo: TrustInfo}> {
logger.log("Checking key backup status..."); logger.log("Checking key backup status...");
if (this.baseApis.isGuest()) { if (this.baseApis.isGuest()) {
logger.log("Skipping key backup check since user is guest"); logger.log("Skipping key backup check since user is guest");
@@ -232,7 +232,7 @@ export class BackupManager {
* trust information (as returned by isKeyBackupTrusted) * trust information (as returned by isKeyBackupTrusted)
* in trustInfo. * in trustInfo.
*/ */
async checkKeyBackup(): Promise<{backupInfo: AuthData, trustInfo: TrustInfo}> { async checkKeyBackup(): Promise<{backupInfo: BackupInfo, trustInfo: TrustInfo}> {
this.checkedForBackup = false; this.checkedForBackup = false;
return this.checkAndStart(); return this.checkAndStart();
} }
@@ -248,7 +248,7 @@ export class BackupManager {
* ] * ]
* } * }
*/ */
async isKeyBackupTrusted(backupInfo: any | undefined): Promise<TrustInfo> { async isKeyBackupTrusted(backupInfo: BackupInfo): Promise<TrustInfo> {
const ret = { const ret = {
usable: false, usable: false,
trusted_locally: false, trusted_locally: false,