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'];