Get a nested value by path (dot notation)
type User = { id: number; profile: { name: string; address: { city: string; zip: number } } };type CityType = PathValue<User, "profile.address.city">; // number Copy
type User = { id: number; profile: { name: string; address: { city: string; zip: number } } };type CityType = PathValue<User, "profile.address.city">; // number
Get a nested value by path (dot notation)