ValueOf
ValueOf<
T> =T[keyofT]
Defined in: src/types/utilities.ts:36
Extracts the value type from a record/object
Type Parameters
Section titled “Type Parameters”T
Example
Section titled “Example”type Colors = { red: '#ff0000', blue: '#0000ff' }type ColorValue = ValueOf<Colors> // '#ff0000' | '#0000ff'