🚨 更新类型定义以解决外部库导入问题

This commit is contained in:
BTMuli
2026-03-25 18:24:47 +08:00
parent 70bafa9ca2
commit 47029ce802
2 changed files with 34 additions and 2 deletions

35
src/vite-env.d.ts vendored
View File

@@ -1,6 +1,6 @@
/**
* 全局类型定义文件
* @since Beta v0.7.6
* @since Beta v0.9.9
*/
/**
@@ -77,3 +77,36 @@ declare module "echarts/features.js" {
declare module "echarts/renderers.js" {
export * from "echarts/types/src/export/renderers.d.ts";
}
/**
* 解决极验验证 CDN 脚本导入问题
* @since Beta v0.9.9
*/
declare module "https://static.geetest.com/static/js/gt.0.4.9.js" {
export {};
}
declare module "https://static.geetest.com/v4/gt4.js" {
export {};
}
/**
* 解决 Swiper CSS 导入问题
* @since Beta v0.9.9
*/
declare module "swiper/css" {
export {};
}
declare module "swiper/css/pagination" {
export {};
}
declare module "swiper/css/navigation" {
export {};
}
/**
* 解决 Vuetify 导入问题
* @since Beta v0.9.9
*/
declare module "vuetify/styles" {
export {};
}

View File

@@ -10,7 +10,6 @@
"isolatedModules": true,
"lib": ["DOM", "ESNext"],
"skipLibCheck": true,
"noUncheckedSideEffectImports": false,
"types": ["vite/client", "node", "js-md5", "uuid"],
"composite": true,
"paths": {