Build all nested paths for an object up to a reasonable recursion depth
type User = { id: number; profile: { name: string; address: { city: string; zip: number } } };type UserPaths = Paths<User>;// "id" | "profile" | "profile.name" | "profile.address" | "profile.address.city" | "profile.address.zip" Copy
type User = { id: number; profile: { name: string; address: { city: string; zip: number } } };type UserPaths = Paths<User>;// "id" | "profile" | "profile.name" | "profile.address" | "profile.address.city" | "profile.address.zip"
Build all nested paths for an object up to a reasonable recursion depth