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.
Arrays are treated as terminal values and do not have indexed paths.
type User = { id: number; profile: { name: string; address: { city: string } } };type PathList = Paths< User >;// 'id' | 'profile' | 'profile.name' | 'profile.address' | 'profile.address.city' Copy
type User = { id: number; profile: { name: string; address: { city: string } } };type PathList = Paths< User >;// 'id' | 'profile' | 'profile.name' | 'profile.address' | 'profile.address.city'
Build all nested property paths using dot notation.