Represents the union type of values of properties in a given type T. This type alias Vals<T> retrieves the union type of values corresponding to the keys (property names) of type T.
T
Vals<T>
type Person = { name: string; age: number; email: string;}; type PersonValues = Vals<Person>; => string | number Copy
type Person = { name: string; age: number; email: string;}; type PersonValues = Vals<Person>; => string | number
Represents the union type of values of properties in a given type
T
. This type aliasVals<T>
retrieves the union type of values corresponding to the keys (property names) of typeT
.