1 Star 0 Fork 4.9K

格洛米/yudao-ui-admin-vue3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
global.d.ts 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
hhhero 提交于 2024-07-14 23:22 +08:00 . [新增]AI: 写作管理
export {}
declare global {
interface Fn<T = any> {
(...arg: T[]): T
}
type Nullable<T> = T | null
type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
type Recordable<T = any, K = string> = Record<K extends null | undefined ? string : K, T>
type ComponentRef<T> = InstanceType<T>
type LocaleType = 'zh-CN' | 'en'
declare type TimeoutHandle = ReturnType<typeof setTimeout>
declare type IntervalHandle = ReturnType<typeof setInterval>
type AxiosHeaders =
| 'application/json'
| 'application/x-www-form-urlencoded'
| 'multipart/form-data'
type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT'
type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
interface AxiosConfig {
params?: any
data?: any
url?: string
method?: AxiosMethod
headersType?: string
responseType?: AxiosResponseType
}
interface IResponse<T = any> {
code: string
data: T extends any ? T : T & any
}
interface PageParam {
pageSize?: number
pageNo?: number
}
interface Tree {
id: number
name: string
children?: Tree[] | any[]
}
// 分页数据公共返回
interface PageResult<T> {
list: T // 数据
total: number // 总量
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shaomh/yudao-ui-admin-vue3.git
git@gitee.com:shaomh/yudao-ui-admin-vue3.git
shaomh
yudao-ui-admin-vue3
yudao-ui-admin-vue3
master

搜索帮助

371d5123 14472233 46e8bd33 14472233