| 12345678910111213141516 |
- /*
- * @Author: wjc
- * @Date: 2025-04-09 10:19:11
- * @LastEditors: wjc
- * @LastEditTime: 2026-01-16 14:39:39
- * @Description: 从联合类型中找到想要的某一类型,并提取相应属性 label 的值
- */
- // 从联合类型中找到想要的某一类型,并提取相应属性 label 的值
- export type ExtractValue<T, K> = T extends { label: infer R; value: K } ? R : never
- export namespace CommonEnums {
- export interface ICommonEnums {
- label: string
- value: string
- }
- }
|