diff --git a/src/@types/search.ts b/src/@types/search.ts index 3a6d4fdd57f..bd97e7de07a 100644 --- a/src/@types/search.ts +++ b/src/@types/search.ts @@ -54,9 +54,9 @@ enum GroupKey { } export interface IResultRoomEvents { - count: number; - highlights: string[]; - results: ISearchResult[]; + count?: number; + highlights?: string[]; + results?: ISearchResult[]; state?: { [roomId: string]: IStateEventWithRoomId[] }; groups?: { [groupKey in GroupKey]: { diff --git a/src/client.ts b/src/client.ts index 72e28f52916..1e3c57783cf 100644 --- a/src/client.ts +++ b/src/client.ts @@ -7109,7 +7109,7 @@ export class MatrixClient extends TypedEventEmitter