fix: simplify export import typedef (#1818)

* fix: simplify export import typedef

* feat: expose kvstore methods in the service too

* chore: update versioning
This commit is contained in:
Daniel Salazar
2025-10-24 12:52:58 -07:00
committed by GitHub
parent 1a1e9e8bb2
commit 3fb3cf0e60
5 changed files with 13 additions and 13 deletions
@@ -11,6 +11,10 @@ export class DBKVServiceWrapper extends BaseService {
meteringService: this.services.get('meteringService').meteringService,
globalConfig: this.global_config,
});
Object.getOwnPropertyNames(DBKVStore.prototype).forEach(fn => {
if ( fn === 'constructor' ) return;
this[fn] = (...args) => this.kvStore[fn](args);
});
}
static IMPLEMENTS = {
['puter-kvstore']: Object.getOwnPropertyNames(DBKVStore.prototype)