make ts happy

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-05-21 18:25:52 +01:00
parent cb0e3bba38
commit d7ee8e13cc

View File

@ -22,11 +22,11 @@ import VectorBasePlatform, {updateCheckStatusEnum} from './VectorBasePlatform';
import BaseEventIndexManager, { import BaseEventIndexManager, {
MatrixEvent, MatrixEvent,
MatrixProfile, MatrixProfile,
SearchConfig,
SearchResult, SearchResult,
HistoricEvent,
CrawlerCheckpoint, CrawlerCheckpoint,
EventAndProfile, EventAndProfile,
SearchArgs,
IndexStats
} from 'matrix-react-sdk/src/indexing/BaseEventIndexManager'; } from 'matrix-react-sdk/src/indexing/BaseEventIndexManager';
import dis from 'matrix-react-sdk/src/dispatcher/dispatcher'; import dis from 'matrix-react-sdk/src/dispatcher/dispatcher';
import { _t, _td } from 'matrix-react-sdk/src/languageHandler'; import { _t, _td } from 'matrix-react-sdk/src/languageHandler';
@ -154,12 +154,12 @@ class SeshatIndexManager extends BaseEventIndexManager {
return this._ipcCall('commitLiveEvents'); return this._ipcCall('commitLiveEvents');
} }
async searchEventIndex(searchConfig: SearchConfig): Promise<SearchResult> { async searchEventIndex(searchConfig: SearchArgs): Promise<SearchResult> {
return this._ipcCall('searchEventIndex', searchConfig); return this._ipcCall('searchEventIndex', searchConfig);
} }
async addHistoricEvents( async addHistoricEvents(
events: [HistoricEvent], events: [EventAndProfile],
checkpoint: CrawlerCheckpoint | null, checkpoint: CrawlerCheckpoint | null,
oldCheckpoint: CrawlerCheckpoint | null, oldCheckpoint: CrawlerCheckpoint | null,
): Promise<boolean> { ): Promise<boolean> {
@ -186,7 +186,7 @@ class SeshatIndexManager extends BaseEventIndexManager {
return this._ipcCall('closeEventIndex'); return this._ipcCall('closeEventIndex');
} }
async getStats(): Promise<void> { async getStats(): Promise<IndexStats> {
return this._ipcCall('getStats'); return this._ipcCall('getStats');
} }