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

Types fixes for CreateKeyBackupDialog TS migration

This commit is contained in:
Germain Souquet
2021-09-12 09:21:04 +02:00
parent fed0ced89d
commit 7daab62850

View File

@@ -2470,7 +2470,7 @@ export class MatrixClient extends EventEmitter {
*/
// TODO: Verify types
public async prepareKeyBackupVersion(
password: string,
password?: string,
opts: IKeyBackupPrepareOpts = { secureSecretStorage: false },
): Promise<Pick<IPreparedKeyBackupVersion, "algorithm" | "auth_data" | "recovery_key">> {
if (!this.crypto) {