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 2021-04-01 17:40:33 +01:00 committed by GitHub
parent ff4fa578fc
commit 793e8b9da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
src/shims.d.ts vendored
View File

@ -10,3 +10,10 @@ declare module '*.md' {
const component: ComponentOptions const component: ComponentOptions
export default component export default component
} }
// declare vue files as components
declare module '*.vue' {
import { ComponentOptions } from 'vue'
const component: ComponentOptions
export default component
}