mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-31 06:29:46 +08:00
🚨 更新类型定义以解决外部库导入问题
This commit is contained in:
35
src/vite-env.d.ts
vendored
35
src/vite-env.d.ts
vendored
@@ -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 {};
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
"isolatedModules": true,
|
||||
"lib": ["DOM", "ESNext"],
|
||||
"skipLibCheck": true,
|
||||
"noUncheckedSideEffectImports": false,
|
||||
"types": ["vite/client", "node", "js-md5", "uuid"],
|
||||
"composite": true,
|
||||
"paths": {
|
||||
|
||||
Reference in New Issue
Block a user