mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-06-13 10:36:33 +08:00
chore: ts配置优化
This commit is contained in:
Vendored
+3
@@ -1,4 +1,7 @@
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference path="../electron/preload/index.d.ts" />
|
||||
|
||||
// 显式引入 preload 的全局类型声明,确保 TS 插件能识别 window.chatApi 等注入 API。
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"],
|
||||
"@electron/*": ["electron/*"]
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"references": [{ "path": "./tsconfig.node.json" }, { "path": "./tsconfig.web.json" }]
|
||||
}
|
||||
|
||||
+2
-1
@@ -20,7 +20,8 @@
|
||||
"allowJs": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
"@/*": ["src/*"],
|
||||
"@electron/*": ["electron/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user