Skip to content

Commit d7ee8e1

Browse files
committed
make ts happy
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent cb0e3bb commit d7ee8e1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/vector/platform/ElectronPlatform.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import VectorBasePlatform, {updateCheckStatusEnum} from './VectorBasePlatform';
2222
import BaseEventIndexManager, {
2323
MatrixEvent,
2424
MatrixProfile,
25-
SearchConfig,
2625
SearchResult,
27-
HistoricEvent,
2826
CrawlerCheckpoint,
2927
EventAndProfile,
28+
SearchArgs,
29+
IndexStats
3030
} from 'matrix-react-sdk/src/indexing/BaseEventIndexManager';
3131
import dis from 'matrix-react-sdk/src/dispatcher/dispatcher';
3232
import { _t, _td } from 'matrix-react-sdk/src/languageHandler';
@@ -154,12 +154,12 @@ class SeshatIndexManager extends BaseEventIndexManager {
154154
return this._ipcCall('commitLiveEvents');
155155
}
156156

157-
async searchEventIndex(searchConfig: SearchConfig): Promise<SearchResult> {
157+
async searchEventIndex(searchConfig: SearchArgs): Promise<SearchResult> {
158158
return this._ipcCall('searchEventIndex', searchConfig);
159159
}
160160

161161
async addHistoricEvents(
162-
events: [HistoricEvent],
162+
events: [EventAndProfile],
163163
checkpoint: CrawlerCheckpoint | null,
164164
oldCheckpoint: CrawlerCheckpoint | null,
165165
): Promise<boolean> {
@@ -186,7 +186,7 @@ class SeshatIndexManager extends BaseEventIndexManager {
186186
return this._ipcCall('closeEventIndex');
187187
}
188188

189-
async getStats(): Promise<void> {
189+
async getStats(): Promise<IndexStats> {
190190
return this._ipcCall('getStats');
191191
}
192192

0 commit comments

Comments
 (0)