Kfg Documentation
    Preparing search index...

    Type Alias DeepGet<T, P>

    DeepGet: P extends `${infer K}.${infer R}`
        ? K extends keyof T ? DeepGet<T[K], R> : never
        : P extends keyof T ? T[P] : never

    Gets the type of a value at a given path in an object.

    Type Parameters

    • T

      The type of the object.

    • P extends string

      The path to the value.