KeyMap<K, T>: { [key in K]: T }
K
T
{ [key in K]: T }
Mapped type of keys
• K extends string[][number]
string
number
Union of string keys
• T
Type of a mapped values