diff --git a/src/filter.ts b/src/filter.ts index e42eea95536..eb619e78df8 100644 --- a/src/filter.ts +++ b/src/filter.ts @@ -65,7 +65,7 @@ export interface IFilterDefinition { export interface IRoomEventFilter extends IFilterComponent { lazy_load_members?: boolean; include_redundant_members?: boolean; - types?: EventType[] | string[]; + types?: Array; [UNSTABLE_FILTER_RELATION_TYPES.name]?: Array; [UNSTABLE_FILTER_RELATION_SENDERS.name]?: string[]; } diff --git a/src/models/event-timeline-set.ts b/src/models/event-timeline-set.ts index b5c6e4800c6..11dea131f4d 100644 --- a/src/models/event-timeline-set.ts +++ b/src/models/event-timeline-set.ts @@ -209,7 +209,7 @@ export class EventTimelineSet extends EventEmitter { * * @fires module:client~MatrixClient#event:"Room.timelineReset" */ - public resetLiveTimeline(backPaginationToken: string, forwardPaginationToken?: string): void { + public resetLiveTimeline(backPaginationToken?: string, forwardPaginationToken?: string): void { // Each EventTimeline has RoomState objects tracking the state at the start // and end of that timeline. The copies at the end of the live timeline are // special because they will have listeners attached to monitor changes to