diff --git a/.prettierignore b/.prettierignore index c759d78..b77ab6c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,3 +5,4 @@ node_modules dist dist-ssr *.local +*.d.ts diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 7d31d5c..5e073f1 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -1,4 +1,6 @@ // Generated by 'unplugin-auto-import' // We suggest you to commit this file into source control -declare global {} +declare global { + +} export {} diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 6de580a..ca0e674 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -5,7 +5,11 @@ import '@vue/runtime-core' declare module '@vue/runtime-core' { export interface GlobalComponents { + ElButton: typeof import('element-plus/es')['ElButton'] HelloWorld: typeof import('./../components/HelloWorld.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + SvgIcon: typeof import('./../components/SvgIcon/index.vue')['default'] } }