Chapter 03
Generics
Parameterised types and functions: constraints, defaults, inference of type arguments, variance, and thekeyof / typeof / indexed-access operators.5 questions
- 010What are generics, and how do
extendsconstraints work?Coming soonCoremedium - 020How are generic type arguments inferred, and when does inference go wrong?Coming soonhard
- 030What are covariance and contravariance, and what do
inandoutdo?Coming soonhard - 040What do
keyof,typeof, and indexed access types do?Coming soonCoremedium - 050What are
consttype parameters andNoInfer?Coming soonhard