TypeScript Key как строка
// This is a key/value structure. The key is a string and the value is a boolean. For example:
let map : { [key: string]: boolean} = {};
map["foo"] = true;
map["bar"] = false;
map.foo = true;
map["foobar"] = "foo"; // Throws exception
map[1] = true; // Curiously doesn't throws exception
Anxious Alpaca