chore: 🔨 默认关闭自动类型声明
This commit is contained in:
@@ -4,4 +4,3 @@ dist
|
||||
public
|
||||
node_modules
|
||||
|
||||
auto-imports.d.ts
|
||||
|
||||
@@ -31,6 +31,10 @@ export default [
|
||||
...autoImportConfig.globals,
|
||||
...{
|
||||
uni: "readonly", // uni-app 全局对象
|
||||
UniApp: "readonly", // uni-app 全局对象
|
||||
ResponseData: "readonly", // 统一响应数据类型
|
||||
PageResult: "readonly", // 分页结果数据类型
|
||||
PageQuery: "readonly", // 分页查询数据类型
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user