TypeScript Professional — Hard
Key points
- Key filtering in mapped types selects properties based on a condition
- The 'as' keyword is used to remap non-matching properties to 'never'
- This technique is useful for creating specialized types based on existing types
Ready to go further?
Related questions
