mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-21 13:38:14 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user