first
This commit is contained in:
38
types/global.d.ts
vendored
Normal file
38
types/global.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
interface Window {
|
||||
XEUtils: Record<string, any>
|
||||
existLoading: boolean
|
||||
lazy: number
|
||||
unique: number
|
||||
tokenRefreshing: boolean
|
||||
requests: Function[]
|
||||
eventSource: EventSource
|
||||
loadLangHandle: Record<string, any>
|
||||
}
|
||||
|
||||
interface anyObj {
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
interface treeData {
|
||||
id?: string
|
||||
value?: string
|
||||
name?: string
|
||||
label?: string
|
||||
children: treeData[]
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
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>>
|
||||
Reference in New Issue
Block a user