fixed some typescript errors
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user