Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 731 Bytes

File metadata and controls

34 lines (24 loc) · 731 Bytes

Home > types-kit > DeepTupleGet

DeepTupleGet type

Get the deep specified value by tuple from T.

Signature:

export type DeepTupleGet<
  T,
  K extends readonly DeepKeys<T>[],
> = InternalDeepTupleGet<T, K>

References: DeepKeys, InternalDeepTupleGet

Example

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

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