Industrial-image-management.../src/types/global.d.ts

26 lines
417 B
TypeScript
Raw Normal View History

2025-06-27 19:54:42 +08:00
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
/** 性别120未知 */
type Gender = 1 | 2 | 0