Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 678 Bytes

File metadata and controls

31 lines (21 loc) · 678 Bytes

Home > types-kit > TupleGet

TupleGet type

Get the specified value by tuple from T.

Signature:

export type TupleGet<T, K extends readonly Keys<T>[]> = InternalTupleGet<T, K>

References: Keys, InternalTupleGet

Example

 interface Props {
   a: {
     d: () => void
   }
   b: string
   c: boolean
}

 // Expect: [{ d: () => void }, string]
 type PropValues = TupleGet<Props, ['a', 'b']>