Generates all possible dot-notation paths for an object type.
Essential for autocomplete in configuration systems, form builders, and any API that accepts property paths as strings.
interface User { profile: { name: string; age: number; }; tags: string[]; }type UserPaths = PathNames<User>; // 'profile' | 'profile.name' | 'profile.age' | 'tags' | 'tags.0' Copy
interface User { profile: { name: string; age: number; }; tags: string[]; }type UserPaths = PathNames<User>; // 'profile' | 'profile.name' | 'profile.age' | 'tags' | 'tags.0'
Generates all possible dot-notation paths for an object type.
Essential for autocomplete in configuration systems, form builders, and any API that accepts property paths as strings.