Problem Statement
Pick only a subset of properties:
Explanation
Pick<T, K> keeps only K from T. The opposite is Omit<T, K>, which drops K from T.
Code Solution
SolutionRead Only
type User = { id: string; name: string; email: string };
type UserPreview = Pick<User, 'id' | 'name'>;