first commit
This commit is contained in:
25
src/types/global.d.ts
vendored
Normal file
25
src/types/global.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
interface AnyObject {
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
interface Options {
|
||||
label: string
|
||||
value: unknown
|
||||
}
|
||||
|
||||
/** 键值对类型 */
|
||||
export interface LabelValueState {
|
||||
label: string
|
||||
value: any
|
||||
extra?: string
|
||||
}
|
||||
|
||||
declare global{
|
||||
type Recordable<T = any> = Record<string, T>
|
||||
}
|
||||
|
||||
/** 状态(1:启用;2:禁用) */
|
||||
type Status = 1 | 2
|
||||
|
||||
/** 性别(1:男;2:女;0:未知) */
|
||||
type Gender = 1 | 2 | 0
|
||||
Reference in New Issue
Block a user