Functions and generics
Write reusable, well-inferred generic functions.
- TS.03.01Typing functionsCoreJuniorBeing written
- TS.03.02Generics: the basicsCoreJuniorBeing written
- TS.03.03Generic inference in depthMid-levelBeing written
Interview questions in this module
- What are generics and why use them?
- Type a function
getProperty(obj, key)so the return type matches the key. - When would you use function overloads instead of a union parameter?
- What does
NoInferdo? - Type a generic
debounce.