$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #234

Fill the blank

// keep only the listed keys
type Summary = ____<User, 'id' | 'name'>;

Answer: Pick (also accepted: Pick, Pick())

Pick<T, K> builds a type from the named subset of T's keys.
Play Problem Solving ▸