Skip to content

Commit 7813c56

Browse files
committed
feat: add shims.d.ts to resolve problem: ts can not find vue module
1 parent 8ae5ddc commit 7813c56

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/component.route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const routesConfig = [
1717
{
1818
path: 'color',
1919
component: ColorComponent,
20-
meta: {nodisplay: true}
20+
meta: { nodisplay: true }
2121
},
2222
{
2323
path: 'theme-guide',

src/shims.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '*.vue' {
2+
import { ComponentOptions } from 'vue'
3+
const componentOptions: ComponentOptions
4+
export default componentOptions
5+
}

0 commit comments

Comments
 (0)