ts实现valueOfAugust 6, 2022 · One min read需求场景 ts自带的操作符有keyof,typeof,可是没有valueOf 解决方案 type ValueOf<T> = T[keyof T];