Generates only the leaf paths (final values) for an object type.
Useful for validation systems and data mapping where you only care about paths that lead to actual values, not intermediate objects.
interface User { profile: { name: string; age: number; }; }type UserLeaves = PathLeaves<User>; // 'profile.name' | 'profile.age' Copy
interface User { profile: { name: string; age: number; }; }type UserLeaves = PathLeaves<User>; // 'profile.name' | 'profile.age'
Generates only the leaf paths (final values) for an object type.
Useful for validation systems and data mapping where you only care about paths that lead to actual values, not intermediate objects.