Is it not feasible to achieve this?
interface IMap {
[key: string]: string;
}
class Map implements IMap {
public foo = "baz";
}
But instead of success, I encounter the error:
TS2420:Class 'Map' does not correctly implement 'IMap'. Index signature is missing in type 'Map'.