From fa0bd6fdb324ff60528153868c482e77b736bd25 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 24 May 2023 11:28:56 +0100 Subject: [PATCH] Fix re-exports for SAS.ts These three are only types, not objects we can export. Fixes warnings in EW (and probably some build failures for someone somewhere): ``` 2023-05-24 11:27:28.294 [element-js] WARNING in ../matrix-js-sdk/src/crypto/verification/SAS.ts 31:0-123 2023-05-24 11:27:28.294 [element-js] "export 'EmojiMapping' was not found in '../../crypto-api/verification' 2023-05-24 11:27:28.294 [element-js] 2023-05-24 11:27:28.294 [element-js] WARNING in ../matrix-js-sdk/src/crypto/verification/SAS.ts 31:0-123 2023-05-24 11:27:28.294 [element-js] "export 'GeneratedSas' (reexported as 'IGeneratedSas') was not found in '../../crypto-api/verification' 2023-05-24 11:27:28.294 [element-js] 2023-05-24 11:27:28.294 [element-js] WARNING in ../matrix-js-sdk/src/crypto/verification/SAS.ts 31:0-123 2023-05-24 11:27:28.294 [element-js] "export 'ShowSasCallbacks' (reexported as 'ISasEvent') was not found in '../../crypto-api/verification' ``` --- src/crypto/verification/SAS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/verification/SAS.ts b/src/crypto/verification/SAS.ts index e8feaddca47..61f096ca452 100644 --- a/src/crypto/verification/SAS.ts +++ b/src/crypto/verification/SAS.ts @@ -36,7 +36,7 @@ import { EventType } from "../../@types/event"; import { EmojiMapping, GeneratedSas, ShowSasCallbacks, VerifierEvent } from "../../crypto-api/verification"; // backwards-compatibility exports -export { +export type { ShowSasCallbacks as ISasEvent, GeneratedSas as IGeneratedSas, EmojiMapping,