Merge branch 'snowpack-ts-storage-1' into snowpack-ts-storage-2
This commit is contained in:
commit
af70269169
1 changed files with 5 additions and 6 deletions
|
@ -35,15 +35,14 @@ class QueryTargetWrapper<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get keyPath(): string | string[] {
|
get keyPath(): string | string[] {
|
||||||
if ("objectStore" in this._qt) {
|
return this._qtStore.keyPath;
|
||||||
return this._qt.objectStore.keyPath;
|
|
||||||
} else {
|
|
||||||
return this._qt.keyPath;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get _qtStore(): IDBObjectStore {
|
get _qtStore(): IDBObjectStore {
|
||||||
return this._qt as IDBObjectStore;
|
if ("objectStore" in this._qt) {
|
||||||
|
return this._qt.objectStore;
|
||||||
|
}
|
||||||
|
return this._qt;
|
||||||
}
|
}
|
||||||
|
|
||||||
supports(methodName: string): boolean {
|
supports(methodName: string): boolean {
|
||||||
|
|
Reference in a new issue