feat: enable volar ts plugin (#63)

* chore: enabled ts plugin

* fix: require -> required
This commit is contained in:
Johnson Chu 2021-02-14 14:26:59 +08:00 committed by GitHub
parent ac7dafc1b1
commit c6c6722d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -1,4 +1,5 @@
{
"volar.tsPlugin": true,
"i18n-ally.localesPaths": "locales",
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,

View File

@ -6,7 +6,7 @@ import { defineProps } from 'vue'
const props = defineProps({
name: {
type: String,
require: true,
required: true,
},
})

6
src/shims.d.ts vendored
View File

@ -4,12 +4,6 @@ declare interface Window {
// extend the window
}
declare module '*.vue' {
import { ComponentOptions } from 'vue'
const component: ComponentOptions
export default component
}
// with vite-plugin-md, markdowns can be treat as Vue components
declare module '*.md' {
import { ComponentOptions } from 'vue'