Resolve the value type at a given property path.
Object type to traverse
Dot-separated property path
Supports dot-separated paths and resolves deeply nested property types. Returns never for invalid paths.
never
type User = { id: number; profile: { name: string; address: { city: string } } };type City = PathValue< User, "profile.address.city" >; // string Copy
type User = { id: number; profile: { name: string; address: { city: string } } };type City = PathValue< User, "profile.address.city" >; // string
Resolve the value type at a given property path.