<script setup lang="ts">
defineProps<{
msg: string
}>()
</script>
/*all scripts are now set with <script setup lang="ts"></script>*/
Vue can be used with Typescript simply by enter Yes when it asks whether you want to use Typescript with this vue project
If set up correctly, you will notice many of your files such as your main file now have ts endings.