1var stuff: { [key: string]: string; } = {};
2stuff['a'] = ''; // ok
3stuff['a'] = 4; // error
4
5// ... or, if you're using this a lot and don't want to type so much ...
6interface StringMap { [key: string]: string; }
7var stuff2: StringMap = { };
8// same as above
9