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:
parent
ff4fa578fc
commit
793e8b9da1
7
src/shims.d.ts
vendored
7
src/shims.d.ts
vendored
@ -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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user