@webdeveric/utils
    Preparing search index...

    Type Alias PathValue<Type, TargetPath, Optional>

    PathValue: TargetPath extends `${infer Key}.${infer Rest}`
        ? GetValueForKey<Type, Key, Optional> extends infer Value
            ? Rest extends Path<NonNullable<Value>>
                ? PathValue<
                    NonNullable<Value>,
                    Rest,
                    CanBeUndefined<Value, true, false>,
                >
                : never
            : never
        : GetValueForKey<Type, TargetPath, Optional>

    Get the type for a given dot notation path.

    Type Parameters

    type ExampleValue = PathValue<{
    job: {
    title: string;
    }
    }, 'job.title'>;

    Equals:

    type ExampleValue = string;