Appearance
获取对象属性值的联合类型。
import { ValueOf } from '@base-web-kits/base-tools-ts'; type V = ValueOf<{ a: 1; b: 'x' }>; // 结果: 1 | 'x'