From 1fcc147da7a02b3847d2d21d217e9ac9e74ac62c Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 31 Aug 2021 12:16:16 -0700 Subject: [PATCH] Add type to the IDBKeyRange field --- src/matrix/storage/idb/stores/TimelineEventStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/matrix/storage/idb/stores/TimelineEventStore.ts b/src/matrix/storage/idb/stores/TimelineEventStore.ts index 466f9737..eb4c70cc 100644 --- a/src/matrix/storage/idb/stores/TimelineEventStore.ts +++ b/src/matrix/storage/idb/stores/TimelineEventStore.ts @@ -53,15 +53,15 @@ function decodeEventIdKey(eventIdKey: string): { roomId: string, eventId: string } class Range { - private _IDBKeyRange: any; // TODO what's the appropriate representation here? + private _IDBKeyRange: typeof IDBKeyRange; private _only?: EventKey; private _lower?: EventKey; private _upper?: EventKey; private _lowerOpen: boolean; private _upperOpen: boolean; - constructor(IDBKeyRange: any, only?: EventKey, lower?: EventKey, upper?: EventKey, lowerOpen: boolean = false, upperOpen: boolean = false) { - this._IDBKeyRange = IDBKeyRange; + constructor(_IDBKeyRange: any, only?: EventKey, lower?: EventKey, upper?: EventKey, lowerOpen: boolean = false, upperOpen: boolean = false) { + this._IDBKeyRange = _IDBKeyRange; this._only = only; this._lower = lower; this._upper = upper;