chore: 🔨 默认关闭自动类型声明

This commit is contained in:
Ray.Hao
2025-02-25 00:17:55 +08:00
parent c9419c83e5
commit c1efba0a0a
3 changed files with 5 additions and 2 deletions

View File

@@ -4,4 +4,3 @@ dist
public
node_modules
auto-imports.d.ts

View File

@@ -31,6 +31,10 @@ export default [
...autoImportConfig.globals,
...{
uni: "readonly", // uni-app 全局对象
UniApp: "readonly", // uni-app 全局对象
ResponseData: "readonly", // 统一响应数据类型
PageResult: "readonly", // 分页结果数据类型
PageQuery: "readonly", // 分页查询数据类型
},
},
},

View File

@@ -28,7 +28,7 @@ export default defineConfig(async ({ mode }: ConfigEnv): Promise<UserConfig> =>
imports: ["vue", "uni-app"],
dts: "src/types/auto-imports.d.ts", // 自动生成的类型声明文件
eslintrc: {
enabled: true,
enabled: false,
},
}),
uni(),