dyna-record
    Preparing search index...

    Type Alias TypeAtDotPath<T, P>

    TypeAtDotPath: P extends `${infer Head}.${infer Rest}`
        ? TypeAtSegment<T, Head> extends infer Next
            ? [Next] extends [never]
                ? never
                : TypeAtDotPath<NonNullable<Next>, Rest>
            : never
        : TypeAtSegment<T, P>

    The type at a dot path within an entity's attributes.

    Walks the path the way DotPathKeys generated it, so a path that type produced always resolves. NonNullable is applied at each hop because an optional object still has fields, and a condition on one of them takes a defined value.

    A segment written name[0] names one element of a List, so the walk steps into the element type rather than looking for a field of that name. Several indexes nest, as a List of Lists needs.

    Type Parameters

    • T

      The type the path starts at.

    • P extends string

      The remaining dot path.