New: Master Frontend System Design! Read our brand new Meta-Guide and solve the Autocomplete practice challenge.Read Master Guide
FrontendPrep
TypeScript Quiz

Advanced Types & Interfaces

Deep dive into interface vs type differences, declaration merging, keyof/typeof, indexed access types, and generic constraints.

Question 1 of 100%

Given `interface User { id: number; name: string; }`, what does the lookup type `User['id']` resolve to?

javascript
type UserId = User['id'];