Adding more typings

This commit is contained in:
Christer Warén
2023-06-07 17:42:21 +03:00
parent 16ef8e70e6
commit 24a6e80f26
4 changed files with 11 additions and 10 deletions

View File

@ -9,8 +9,8 @@ export interface datastore {
id: string,
name?: string
},
statistics: statistics | {},
state: state | {},
statistics: statistics,
state: state | null,
updated?: string
}
@ -58,7 +58,7 @@ export default class Datastore {
id: id,
},
statistics: {},
state: {}
state: null
};
this.map.set(id, newData);
this.saveEntry(id, newData);