type cleanup

This commit is contained in:
2023-03-23 18:25:08 +01:00
parent 9ca26e2a7a
commit fd01ac366d
+2 -7
View File
@@ -10,7 +10,7 @@
</template>
<script lang="ts">
import {defineComponent} from "vue";
import {defineComponent, type PropType} from "vue";
import AdventurerMiniComponent from "@/components/AdventurerMiniComponent.vue";
import type {Adventurer} from "@/classes/Adventurer";
@@ -22,14 +22,9 @@ export default defineComponent({
}),
props: {
adventurers: {
type: Array<Adventurer>
type: Object as PropType<{[key: string]: Adventurer}>,
},
},
methods: {
print(a: string) {
console.log(a);
}
}
})
</script>