typeof and keyof
typeof in a type position takes a type out of a value. It is not the JavaScript operator; same word, different world.
That is genuinely useful for configuration objects and constant maps, where the value is the source of truth and writing the type by hand would just be a second thing to maintain.
Mark this lesson complete
Signed in, your progress follows you to every device.