From 858061a6f5bf097563a887b9e83cdff409a12cff Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Thu, 15 Jun 2023 14:31:56 +0200 Subject: [PATCH] Fix export type `GeneratedSecretStorageKey` --- src/crypto/api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crypto/api.ts b/src/crypto/api.ts index c676389099d..cb0f71631ad 100644 --- a/src/crypto/api.ts +++ b/src/crypto/api.ts @@ -19,7 +19,9 @@ import { IKeyBackupInfo } from "./keybackup"; import { GeneratedSecretStorageKey } from "../crypto-api"; /* re-exports for backwards compatibility. */ -export { CrossSigningKey, GeneratedSecretStorageKey as IRecoveryKey } from "../crypto-api"; +// CrossSigningKey is used as a value in `client.ts`, we can't export it as a type +export { CrossSigningKey } from "../crypto-api"; +export type { GeneratedSecretStorageKey as IRecoveryKey } from "../crypto-api"; export type { ImportRoomKeyProgressData as IImportOpts,