TypeScript handbook
The official reference for the tools used in this lesson.
Lesson 2.2
Constraints say what a type parameter must at least be. Combined with keyof, they give you property access that stays typed.
Constraints say what a type parameter must at least be. Combined with keyof, they give you property access that stays typed.