@arcmantle/library
    Preparing search index...

    Type Alias PathOfLeaf<TTarget>

    PathOfLeaf: ObjectHasLiteralKeys<TTarget> extends true
        ? PathOfInternal<TTarget, true, []>
        : Path

    Extracts out the keys of the given type as dot separated paths. Includes only paths to the leaf nodes.

    Type Parameters

    • TTarget extends Record<keyof any, any>
    {
    key1: string;
    key2: {
    sub1: string;
    sub2: string
    }
    }

    Will be extracted as: 'key1' | 'key2.sub1' | 'key2.sub2'

    Depth of search can be set using the third parameter TDepth (default 6).