Generic Constraints
Limit what types can be used with generics using constraints.
extends Keyword
Constraining to Interface
keyof Constraint
Multiple Constraints
Constructor Constraint
Default Type Parameter
Conditional Constraints
Exercise: Add Constraint
Add a constraint so the function only accepts objects with an id:

