feat: enable volar ts plugin (#63)

* chore: enabled ts plugin

* fix: require -> required
This commit is contained in:
Johnson Chu authored and GitHub committed 2021-02-14 14:26:59 +08:00
1 parent ac7dafc1b1
commit c6c6722d38
3 files changed
+2 -7

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
{ {
"volar.tsPlugin": true,
"i18n-ally.localesPaths": "locales", "i18n-ally.localesPaths": "locales",
"i18n-ally.keystyle": "nested", "i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true, "i18n-ally.sortKeys": true,
+1 -1
View File
@@ -6,7 +6,7 @@ import { defineProps } from 'vue'
const props = defineProps({ const props = defineProps({
name: { name: {
type: String, type: String,
require: true, required: true,
}, },
}) })
-6
View File
@@ -4,12 +4,6 @@ declare interface Window {
// extend the 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 // with vite-plugin-md, markdowns can be treat as Vue components
declare module '*.md' { declare module '*.md' {
import { ComponentOptions } from 'vue' import { ComponentOptions } from 'vue'