Add type to the IDBKeyRange field
This commit is contained in:
parent
056c7d40eb
commit
1fcc147da7
1 changed files with 3 additions and 3 deletions
|
@ -53,15 +53,15 @@ function decodeEventIdKey(eventIdKey: string): { roomId: string, eventId: string
|
||||||
}
|
}
|
||||||
|
|
||||||
class Range {
|
class Range {
|
||||||
private _IDBKeyRange: any; // TODO what's the appropriate representation here?
|
private _IDBKeyRange: typeof IDBKeyRange;
|
||||||
private _only?: EventKey;
|
private _only?: EventKey;
|
||||||
private _lower?: EventKey;
|
private _lower?: EventKey;
|
||||||
private _upper?: EventKey;
|
private _upper?: EventKey;
|
||||||
private _lowerOpen: boolean;
|
private _lowerOpen: boolean;
|
||||||
private _upperOpen: boolean;
|
private _upperOpen: boolean;
|
||||||
|
|
||||||
constructor(IDBKeyRange: any, only?: EventKey, lower?: EventKey, upper?: EventKey, lowerOpen: boolean = false, upperOpen: boolean = false) {
|
constructor(_IDBKeyRange: any, only?: EventKey, lower?: EventKey, upper?: EventKey, lowerOpen: boolean = false, upperOpen: boolean = false) {
|
||||||
this._IDBKeyRange = IDBKeyRange;
|
this._IDBKeyRange = _IDBKeyRange;
|
||||||
this._only = only;
|
this._only = only;
|
||||||
this._lower = lower;
|
this._lower = lower;
|
||||||
this._upper = upper;
|
this._upper = upper;
|
||||||
|
|
Reference in a new issue