interface User {
profile: { name: string; age: number; };
tags: Set<string>;
metadata: Map<string, { value: string }>;
}
type UserName = PathValue<User, 'profile.name'>; // string
type Tag = PathValue<User, 'tags.0'>; // string
type MetaValue = PathValue<User, 'metadata.someKey.value'>; // string
Extracts the value type at a specific string path.
Enables type-safe deep property access with compile-time validation of both path validity and return type correctness. Supports: