mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-26 21:15:21 +01:00
16 lines
294 B
JavaScript
16 lines
294 B
JavaScript
import QueryTarget from "./query-target.js";
|
|
import Index from "./index.js";
|
|
|
|
export default class Store extends QueryTarget {
|
|
constructor(store) {
|
|
this._store = store;
|
|
}
|
|
|
|
_queryTarget() {
|
|
return this._store;
|
|
}
|
|
|
|
index(indexName) {
|
|
return new Index(this._store.index(indexName));
|
|
}
|
|
} |