fix over 30 ts errors

This commit is contained in:
2023-03-25 00:36:42 +01:00
parent 28295e69d5
commit b89d041064
6 changed files with 22 additions and 9 deletions
+6 -6
View File
@@ -112,7 +112,7 @@ import {defineComponent, type PropType} from "vue";
import AdventurerComponent from "@/components/AdventurerMiniComponent.vue";
import type {Adventurer} from "@/classes/Adventurer";
import type {Quest} from "@/classes/Quest";
import type {Guild} from "@/classes/Guild";
import {Guild} from "@/classes/Guild";
import QuestMissive from "@/components/QuestMissive.vue";
export default defineComponent({
@@ -121,17 +121,20 @@ export default defineComponent({
props: {
guild: {
type: Object as PropType<Guild>,
default() {
return new Guild(1, 0);
},
},
adventurers: {
type: Object as PropType<{ [key: string]: Adventurer }>,
default() {
return {};
return {} as { [key: string]: Adventurer };
},
},
quests: {
type: Object as PropType<{ [key: string]: Quest }>,
default() {
return {};
return {} as { [key: string]: Quest };
},
},
lastRecruitTime: {
@@ -141,9 +144,6 @@ export default defineComponent({
}
},
},
data() {
return {};
},
emits: [ 'finalizeQuest', 'wipeSave', 'recruitActionTaken'],
})
</script>