Quiz: Functions & Generics
Test what you learned in this lesson before moving on.
Lesson Quiz
Pass with 80% to complete this lesson.
1. What does the generic type parameter `<T>` represent?
2. What does `Partial<User>` do?
3. How do you restrict a generic type parameter to types that have a `length` property?
4. What is the correct way to type a function that accepts a callback?