Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 525 Bytes

File metadata and controls

29 lines (19 loc) · 525 Bytes

Home > types-kit > ValueOf

ValueOf type

Get values of T.

Signature:

export type ValueOf<T> = T[Keys<T>]

References: Keys

Example

 interface Props {
   a?: number
   b: string
   c: boolean
 }

 // Expect: number | string | boolean | undefined
 type PropValues = ValueOf<Props>