Appearance
根据值类型获取键名联合。
import { KeysOfType } from '@base-web-kits/base-tools-ts'; type Keys = KeysOfType<{ a: string; b: number; c: string }, string>; // 结果: 'a' | 'c'