mirror of
https://github.com/YouHaveTrouble/GuildMaster.git
synced 2026-05-12 06:26:59 +00:00
type cleanup
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {defineComponent} from "vue";
|
import {defineComponent, type PropType} from "vue";
|
||||||
import AdventurerMiniComponent from "@/components/AdventurerMiniComponent.vue";
|
import AdventurerMiniComponent from "@/components/AdventurerMiniComponent.vue";
|
||||||
import type {Adventurer} from "@/classes/Adventurer";
|
import type {Adventurer} from "@/classes/Adventurer";
|
||||||
|
|
||||||
@@ -22,14 +22,9 @@ export default defineComponent({
|
|||||||
}),
|
}),
|
||||||
props: {
|
props: {
|
||||||
adventurers: {
|
adventurers: {
|
||||||
type: Array<Adventurer>
|
type: Object as PropType<{[key: string]: Adventurer}>,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
print(a: string) {
|
|
||||||
console.log(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user