forked from mystiq/hydrogen-web
Use 'in' to be more idiomatic
This commit is contained in:
parent
19bababa68
commit
94ff76711c
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue