v.0.0.2 bring typing into game

This commit is contained in:
tiijay
2026-09-16 17:39:17 +02:00
parent 5cf9cc6fa8
commit d3ae6ab7b5
7 changed files with 35 additions and 17 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
<script setup>
import { onMounted, ref } from "vue";
<script setup lang="ts">
import { ref } from "vue";
const msg = ref("Tom is building a vue template, oh yeah");
const status = ref(true);
const msg = ref<string>("Tom is building a vue template, oh yeah");
const status = ref<boolean>(true);
// Define function directly
const toggleStatus = () => {
const toggleStatus = (): void => {
status.value = !status.value;
};
</script>