@@ -19,16 +19,16 @@ import anotherjson from "another-json";
19
19
import fetchMock from "fetch-mock-jest" ;
20
20
import "fake-indexeddb/auto" ;
21
21
import { IDBFactory } from "fake-indexeddb" ;
22
- import FetchMock from "fetch-mock" ;
23
- import Olm from "@matrix-org/olm" ;
24
22
23
+ import type FetchMock from "fetch-mock" ;
24
+ import type Olm from "@matrix-org/olm" ;
25
25
import * as testUtils from "../../test-utils/test-utils" ;
26
26
import {
27
27
advanceTimersUntil ,
28
28
CRYPTO_BACKENDS ,
29
29
emitPromise ,
30
30
getSyncResponse ,
31
- InitCrypto ,
31
+ type InitCrypto ,
32
32
mkEventCustom ,
33
33
mkMembershipCustom ,
34
34
syncPromise ,
@@ -52,24 +52,24 @@ import {
52
52
createClient ,
53
53
CryptoEvent ,
54
54
HistoryVisibility ,
55
- IClaimOTKsResult ,
56
- IContent ,
57
- IDownloadKeyResult ,
58
- IEvent ,
55
+ type IClaimOTKsResult ,
56
+ type IContent ,
57
+ type IDownloadKeyResult ,
58
+ type IEvent ,
59
59
IndexedDBCryptoStore ,
60
- IStartClientOpts ,
61
- MatrixClient ,
60
+ type IStartClientOpts ,
61
+ type MatrixClient ,
62
62
MatrixEvent ,
63
63
MatrixEventEvent ,
64
64
MsgType ,
65
65
PendingEventOrdering ,
66
66
Room ,
67
- RoomMember ,
67
+ type RoomMember ,
68
68
RoomStateEvent ,
69
69
} from "../../../src/matrix" ;
70
70
import { DeviceInfo } from "../../../src/crypto/deviceinfo" ;
71
71
import { E2EKeyReceiver } from "../../test-utils/E2EKeyReceiver" ;
72
- import { ISyncResponder , SyncResponder } from "../../test-utils/SyncResponder" ;
72
+ import { type ISyncResponder , SyncResponder } from "../../test-utils/SyncResponder" ;
73
73
import { defer , escapeRegExp } from "../../../src/utils" ;
74
74
import { downloadDeviceToJsDevice } from "../../../src/rust-crypto/device-converter" ;
75
75
import { flushPromises } from "../../test-utils/flushPromises" ;
@@ -78,15 +78,15 @@ import {
78
78
mockSetupCrossSigningRequests ,
79
79
mockSetupMegolmBackupRequests ,
80
80
} from "../../test-utils/mockEndpoints" ;
81
- import { SecretStorageKeyDescription } from "../../../src/secret-storage" ;
81
+ import { type SecretStorageKeyDescription } from "../../../src/secret-storage" ;
82
82
import {
83
83
CrossSigningKey ,
84
- CryptoCallbacks ,
84
+ type CryptoCallbacks ,
85
85
DecryptionFailureCode ,
86
- DeviceIsolationMode ,
86
+ type DeviceIsolationMode ,
87
87
EventShieldColour ,
88
88
EventShieldReason ,
89
- KeyBackupInfo ,
89
+ type KeyBackupInfo ,
90
90
AllDevicesIsolationMode ,
91
91
OnlySignedDevicesIsolationMode ,
92
92
} from "../../../src/crypto-api" ;
@@ -101,11 +101,11 @@ import {
101
101
establishOlmSession ,
102
102
getTestOlmAccountKeys ,
103
103
} from "./olm-utils" ;
104
- import { ToDevicePayload } from "../../../src/models/ToDeviceMessage" ;
104
+ import { type ToDevicePayload } from "../../../src/models/ToDeviceMessage" ;
105
105
import { AccountDataAccumulator } from "../../test-utils/AccountDataAccumulator" ;
106
106
import { UNSIGNED_MEMBERSHIP_FIELD } from "../../../src/@types/event" ;
107
107
import { KnownMembership } from "../../../src/@types/membership" ;
108
- import { KeyBackup } from "../../../src/rust-crypto/backup.ts" ;
108
+ import { type KeyBackup } from "../../../src/rust-crypto/backup.ts" ;
109
109
110
110
afterEach ( ( ) => {
111
111
// reset fake-indexeddb after each test, to make sure we don't leak connections
0 commit comments