Files
admin-govern/types/global.d.ts

39 lines
668 B
TypeScript
Raw Normal View History

2023-12-21 16:42:39 +08:00
interface Window {
2023-12-27 16:36:10 +08:00
XEUtils: Record<string, any>
2023-12-21 16:42:39 +08:00
existLoading: boolean
lazy: number
unique: number
tokenRefreshing: boolean
requests: Function[]
eventSource: EventSource
loadLangHandle: Record<string, any>
}
interface anyObj {
[key: string]: any
}
2024-01-15 16:15:24 +08:00
interface treeData {
id?: string
value?: string
name?: string
label?: string
children: treeData[]
[key: string]: any
}
2023-12-21 16:42:39 +08:00
interface TableDefaultData<T = any> {
list: T
remark: string
total: number
}
interface ApiResponse<T = any> {
code: number
data: T
msg: string
time: number
}
type ApiPromise<T = any> = Promise<ApiResponse<T>>