mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 12:30:41 +08:00
chore: 清理旧文件并重构项目基础结构
- 删除大量废弃的旧代码、依赖和配置文件 - 新增基础项目配置、工具函数、页面模板和请求库 - 重构目录结构,统一项目规范 - 添加commitlint、husky等代码规范工具
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// 枚举定义
|
||||
|
||||
export enum TestEnum {
|
||||
A = '1',
|
||||
B = '2',
|
||||
}
|
||||
|
||||
// uni.uploadFile文件上传参数
|
||||
export interface IUniUploadFileOptions {
|
||||
file?: File
|
||||
files?: UniApp.UploadFileOptionFiles[]
|
||||
filePath?: string
|
||||
name?: string
|
||||
formData?: any
|
||||
}
|
||||
|
||||
/** 工具类型:删除字符串开头的第一个斜杠 */
|
||||
export type RemoveLeadingSlash<S extends string> = S extends `/${infer Rest}` ? Rest : S
|
||||
|
||||
/** 工具类型:删除联合类型中每个字符串的第一个斜杠 */
|
||||
export type RemoveLeadingSlashFromUnion<T extends string> = T extends any ? RemoveLeadingSlash<T> : never
|
||||
Reference in New Issue
Block a user