你可以做一个ValueOf类似的keyof,通过查找类型与keyof T为关键,就像这样: type ValueOf<T> = T[keyof T]; 这给你type Foo = { a: string, b: number…
確定! 回上一頁