Skip to content

Commit

Permalink
refactor: 更新类型文件
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Jul 18, 2023
1 parent 04adf40 commit 7793cff
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"plugin:vue/vue3-essential",
"plugin:@typescript-eslint/recommended",
"prettier",
"./src/typings/auto-import.eslintrc.json"
"./src/typings/.eslintrc.json"
],
"overrides": [],
"parser": "vue-eslint-parser",
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/typings/auto-imports.d.ts → src/typings/imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ declare global {
const useIntervalFn: typeof import('@vueuse/core')['useIntervalFn']
const useKeyModifier: typeof import('@vueuse/core')['useKeyModifier']
const useLastChanged: typeof import('@vueuse/core')['useLastChanged']
const useLink: typeof import('vue-router')['useLink']
const useLocalStorage: typeof import('@vueuse/core')['useLocalStorage']
const useMagicKeys: typeof import('@vueuse/core')['useMagicKeys']
const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory']
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { VueRouterAutoImports } from 'unplugin-vue-router'
export default defineConfig({
plugins: [
VueRouter({
dts: './src/typings/typed-router.d.ts',
dts: './src/typings/router.d.ts',
extensions: ['.vue'],
routesFolder: './src/views'
}),
Expand All @@ -30,9 +30,9 @@ export default defineConfig({
AutoImport({
eslintrc: {
enabled: true,
filepath: './src/typings/auto-import.eslintrc.json'
filepath: './src/typings/.eslintrc.json'
},
dts: './src/typings/auto-imports.d.ts',
dts: './src/typings/imports.d.ts',
imports: ['@vueuse/core', 'pinia', 'vue-i18n', 'vue', VueRouterAutoImports],
resolvers: [ArcoResolver()]
}),
Expand Down

0 comments on commit 7793cff

Please sign in to comment.