fixed some typescript errors

This commit is contained in:
Sockenklaus
2021-12-02 12:41:22 +01:00
parent f5b59c3ae8
commit 28d42204ab
3 changed files with 6 additions and 5 deletions

View File

@@ -54,8 +54,8 @@ export const useEmployee = defineStore({
},
actions: {
assignTruthyValues(target: Object, source: Object) {
for (const key in source) {
assignTruthyValues(target: Employee, source: Employee) {
for (let key in source) {
if (source[key]) {
target[key] = source[key]
}