mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Use 'in' to be more idiomatic
This commit is contained in:
parent
19bababa68
commit
94ff76711c
@ -35,7 +35,7 @@ class QueryTargetWrapper<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get keyPath(): string | string[] {
|
get keyPath(): string | string[] {
|
||||||
if (this._qt["objectStore"]) {
|
if ("objectStore" in this._qt) {
|
||||||
return (this._qt as IDBIndex).objectStore.keyPath;
|
return (this._qt as IDBIndex).objectStore.keyPath;
|
||||||
} else {
|
} else {
|
||||||
return this._qt.keyPath;
|
return this._qt.keyPath;
|
||||||
|
Loading…
Reference in New Issue
Block a user