fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-26 00:25:06 +01:00
parent 1e258e5ffb
commit 84d48f1914
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartdata',
version: '5.0.34',
version: '5.0.35',
description: 'do more with data'
}

View File

@ -70,7 +70,7 @@ export class EasyStore<T> {
/**
* writes a specific key to the keyValueStore
*/
public async writeKey(keyArg: keyof T, valueArg: any) {
public async writeKey<TKey extends keyof T>(keyArg: TKey, valueArg: T[TKey]) {
const easyStore = await this.getEasyStore();
easyStore.data[keyArg] = valueArg;
await easyStore.save();