v.0.0.2 bring typing into game
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user