Build all nested property paths using dot notation.
Object type to analyze
Maximum recursion depth (defaults to 5)
Generates a union of valid access paths up to a configurable recursion depth. Path order is not guaranteed.
type User = { id: number; profile: { name: string; address: { city: string } } };type Paths = Paths< User >;// "id" | "profile" | "profile.name" | "profile.address" | "profile.address.city" Copy
type User = { id: number; profile: { name: string; address: { city: string } } };type Paths = Paths< User >;// "id" | "profile" | "profile.name" | "profile.address" | "profile.address.city"
Build all nested property paths using dot notation.