Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 546 Bytes

File metadata and controls

29 lines (19 loc) · 546 Bytes

Home > types-kit > Get

Get type

Get the specified value from T.

Signature:

export type Get<T, K extends Keys<T>> = T[K]

References: Keys

Example

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

 // Expect: number | string | undefined
 type PropValues = Get<Props, 'a' | 'b'>