diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 6a390830..06f36ed8 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -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 {}; +} diff --git a/tsconfig.json b/tsconfig.json index 0f00cc71..0a838530 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,6 @@ "isolatedModules": true, "lib": ["DOM", "ESNext"], "skipLibCheck": true, - "noUncheckedSideEffectImports": false, "types": ["vite/client", "node", "js-md5", "uuid"], "composite": true, "paths": {