add ts config

This commit is contained in:
liangping
2022-05-14 11:58:29 +08:00
parent 87622ee633
commit 1c04357c93
6 changed files with 83 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
interface hello {
name: string;
}
class HelloType implements hello {
name: string
constructor(name: string) {
this.name = name
}
}
console.log('Hello from typescript', new HelloType('typescript'))
+1
View File
@@ -19,6 +19,7 @@ import './global-components'
import '@/libs/portal-vue'
import '@/libs/toastification'
import '@/libs/clipboard'
import '@/libs/Hello.ts'
Vue.directive('observe-visibility', ObserveVisibility)
// Vue.use(VueGtag, { config: { id: 'UA-238887-1' } }, router)