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%
What does the `keyof` operator do in TypeScript?
javascript
interface User { id: number; name: string; }
type UserKeys = keyof User;