fix: vue file imports throwing IDE errors (#106)

Fixes `import App from './App.vue'` throwing ts2307: cannot find module (in `/src/main.ts` and others)
This commit is contained in:
Seb Tomasini authored and GitHub committed 2021-04-02 00:40:33 +08:00
1 parent ff4fa578fc
commit 793e8b9da1
1 file changed
+7
+7
View File
@@ -10,3 +10,10 @@ declare module '*.md' {
const component: ComponentOptions
export default component
}
// declare vue files as components
declare module '*.vue' {
import { ComponentOptions } from 'vue'
const component: ComponentOptions
export default component
}