mirror of
https://github.com/YouHaveTrouble/GuildMaster.git
synced 2026-05-12 14:36:58 +00:00
type cleanup
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user