types
types copied to clipboard
Use mapped types for iterating objects
This allows narrowing the value based on the key, as shown in the attached screenshot: