pack: typescript fix and correct imports
This commit is contained in:
1 parent
fe44f9cac3
commit
b4a15b27e4
6 files changed
+10
-5
No files matched your search
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"author": "jooy2 <jooy2.contact@gmail.com>",
|
"author": "jooy2 <jooy2.contact@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vitepress": "^1.0.0-alpha.73",
|
"vitepress": "^1.0.0-alpha.75",
|
||||||
"vitepress-sidebar": "^1.3.1",
|
"vitepress-sidebar": "^1.3.1",
|
||||||
"vue": "^3.2.47"
|
"vue": "^3.2.47"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@
|
|||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"eslint-plugin-vue": "^9.11.0",
|
"eslint-plugin-vue": "^9.11.0",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"typescript": "5.0.4",
|
"typescript": "^5.0.4",
|
||||||
"vite": "^4.3.4",
|
"vite": "^4.3.4",
|
||||||
"vite-plugin-electron": "^0.11.2",
|
"vite-plugin-electron": "^0.11.2",
|
||||||
"vite-plugin-electron-renderer": "^0.14.1",
|
"vite-plugin-electron-renderer": "^0.14.1",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route: any = useRoute()
|
||||||
const titleKey: string = (route?.meta?.titleKey || 'title.main') as string
|
const titleKey: string = (route?.meta?.titleKey || 'title.main') as string
|
||||||
|
|
||||||
const handleRoute = (path: string): void => {
|
const handleRoute = (path: string): void => {
|
||||||
|
|||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
declare module '*.vue' {
|
||||||
|
import { defineComponent } from 'vue'
|
||||||
|
const component: ReturnType<typeof defineComponent>
|
||||||
|
export default component
|
||||||
|
}
|
||||||
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
"lib": ["esnext", "dom"]
|
"lib": ["esnext", "dom"]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*/*.ts", "src/**/*/*.d.ts", "src/**/*/*.tsx", "src/**/*/*.vue"],
|
"include": ["src/*.ts", "src/*.d.ts", "src/renderer"],
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.node.json"
|
"path": "./tsconfig.node.json"
|
||||||
|
|||||||
+1
-1
@@ -8,5 +8,5 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true
|
||||||
},
|
},
|
||||||
"include": ["package.json"]
|
"include": ["src/main", "src/preload", "package.json", "vite.config.ts"]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user