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

26 lines
417 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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