From d7ee8e13cc1f94495689a14a79a5822202d723b3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 May 2020 18:25:52 +0100 Subject: [PATCH] make ts happy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/platform/ElectronPlatform.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index af27e2ee7b..e071a97330 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -22,11 +22,11 @@ import VectorBasePlatform, {updateCheckStatusEnum} from './VectorBasePlatform'; import BaseEventIndexManager, { MatrixEvent, MatrixProfile, - SearchConfig, SearchResult, - HistoricEvent, CrawlerCheckpoint, EventAndProfile, + SearchArgs, + IndexStats } from 'matrix-react-sdk/src/indexing/BaseEventIndexManager'; import dis from 'matrix-react-sdk/src/dispatcher/dispatcher'; import { _t, _td } from 'matrix-react-sdk/src/languageHandler'; @@ -154,12 +154,12 @@ class SeshatIndexManager extends BaseEventIndexManager { return this._ipcCall('commitLiveEvents'); } - async searchEventIndex(searchConfig: SearchConfig): Promise { + async searchEventIndex(searchConfig: SearchArgs): Promise { return this._ipcCall('searchEventIndex', searchConfig); } async addHistoricEvents( - events: [HistoricEvent], + events: [EventAndProfile], checkpoint: CrawlerCheckpoint | null, oldCheckpoint: CrawlerCheckpoint | null, ): Promise { @@ -186,7 +186,7 @@ class SeshatIndexManager extends BaseEventIndexManager { return this._ipcCall('closeEventIndex'); } - async getStats(): Promise { + async getStats(): Promise { return this._ipcCall('getStats'); }