Skip to content

Commit 2bcb1a9

Browse files
committed
add typescript
1 parent e03f2c9 commit 2bcb1a9

File tree

3 files changed

+191
-6
lines changed

3 files changed

+191
-6
lines changed

package-lock.json

+187-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"autoprefixer": "^10.4.14",
1818
"postcss": "^8.4.27",
1919
"tailwindcss": "^3.3.3",
20-
"vite": "^4.4.5"
20+
"vite": "^4.4.5",
21+
"vue-tsc": "^1.8.22"
2122
}
2223
}

src/components/HelloWorld.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<script setup>
1+
<script setup lang="ts">
22
import { ref } from 'vue'
33
44
defineProps({
55
msg: String,
66
})
77
8-
const count = ref(0)
8+
const count = ref<Number>(0)
99
</script>
1010

1111
<template>

0 commit comments

Comments
 (0)