Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 636 Bytes

File metadata and controls

33 lines (23 loc) · 636 Bytes

Home > types-kit > DeepKeys

DeepKeys type

Get deep keys of T.

Signature:

export type DeepKeys<T> = InternalDeepKeys<T>

References: InternalDeepKeys

Example

 interface Props {
      a?: {
        readonly b?: number
        c: {
          d?: number
        }
      }
      e: number
    }

 // Expect: 'a' | 'a.b' | 'a.c' | 'a.c.d' | 'e'
 type PropKeys = DeepKeys<Props>