Problem Statement
Get union of keys of T:
Explanation
keyof T produces a string (or symbol) union of property names, commonly paired with indexed access like T[K].
Code Solution
SolutionRead Only
type User = { id: string; name: string };
type Keys = keyof User; // 'id' | 'name'