@@ -19,16 +19,16 @@ import anotherjson from "another-json";
1919import fetchMock from "fetch-mock-jest" ;
2020import "fake-indexeddb/auto" ;
2121import { IDBFactory } from "fake-indexeddb" ;
22- import FetchMock from "fetch-mock" ;
23- import Olm from "@matrix-org/olm" ;
2422
23+ import type FetchMock from "fetch-mock" ;
24+ import type Olm from "@matrix-org/olm" ;
2525import * as testUtils from "../../test-utils/test-utils" ;
2626import {
2727 advanceTimersUntil ,
2828 CRYPTO_BACKENDS ,
2929 emitPromise ,
3030 getSyncResponse ,
31- InitCrypto ,
31+ type InitCrypto ,
3232 mkEventCustom ,
3333 mkMembershipCustom ,
3434 syncPromise ,
@@ -52,24 +52,24 @@ import {
5252 createClient ,
5353 CryptoEvent ,
5454 HistoryVisibility ,
55- IClaimOTKsResult ,
56- IContent ,
57- IDownloadKeyResult ,
58- IEvent ,
55+ type IClaimOTKsResult ,
56+ type IContent ,
57+ type IDownloadKeyResult ,
58+ type IEvent ,
5959 IndexedDBCryptoStore ,
60- IStartClientOpts ,
61- MatrixClient ,
60+ type IStartClientOpts ,
61+ type MatrixClient ,
6262 MatrixEvent ,
6363 MatrixEventEvent ,
6464 MsgType ,
6565 PendingEventOrdering ,
6666 Room ,
67- RoomMember ,
67+ type RoomMember ,
6868 RoomStateEvent ,
6969} from "../../../src/matrix" ;
7070import { DeviceInfo } from "../../../src/crypto/deviceinfo" ;
7171import { E2EKeyReceiver } from "../../test-utils/E2EKeyReceiver" ;
72- import { ISyncResponder , SyncResponder } from "../../test-utils/SyncResponder" ;
72+ import { type ISyncResponder , SyncResponder } from "../../test-utils/SyncResponder" ;
7373import { defer , escapeRegExp } from "../../../src/utils" ;
7474import { downloadDeviceToJsDevice } from "../../../src/rust-crypto/device-converter" ;
7575import { flushPromises } from "../../test-utils/flushPromises" ;
@@ -78,15 +78,15 @@ import {
7878 mockSetupCrossSigningRequests ,
7979 mockSetupMegolmBackupRequests ,
8080} from "../../test-utils/mockEndpoints" ;
81- import { SecretStorageKeyDescription } from "../../../src/secret-storage" ;
81+ import { type SecretStorageKeyDescription } from "../../../src/secret-storage" ;
8282import {
8383 CrossSigningKey ,
84- CryptoCallbacks ,
84+ type CryptoCallbacks ,
8585 DecryptionFailureCode ,
86- DeviceIsolationMode ,
86+ type DeviceIsolationMode ,
8787 EventShieldColour ,
8888 EventShieldReason ,
89- KeyBackupInfo ,
89+ type KeyBackupInfo ,
9090 AllDevicesIsolationMode ,
9191 OnlySignedDevicesIsolationMode ,
9292} from "../../../src/crypto-api" ;
@@ -101,11 +101,11 @@ import {
101101 establishOlmSession ,
102102 getTestOlmAccountKeys ,
103103} from "./olm-utils" ;
104- import { ToDevicePayload } from "../../../src/models/ToDeviceMessage" ;
104+ import { type ToDevicePayload } from "../../../src/models/ToDeviceMessage" ;
105105import { AccountDataAccumulator } from "../../test-utils/AccountDataAccumulator" ;
106106import { UNSIGNED_MEMBERSHIP_FIELD } from "../../../src/@types/event" ;
107107import { KnownMembership } from "../../../src/@types/membership" ;
108- import { KeyBackup } from "../../../src/rust-crypto/backup.ts" ;
108+ import { type KeyBackup } from "../../../src/rust-crypto/backup.ts" ;
109109
110110afterEach ( ( ) => {
111111 // reset fake-indexeddb after each test, to make sure we don't leak connections
0 commit comments