Using Index Signatures
type StringDictionary = {
[index: string]: string;
count: number;
// Error: Property 'count' of type 'number' is not assignable
// to 'string' index type 'string'.(2411)
};
type StringDictionary = {
[index: string]: string;
count: number;
// Error: Property 'count' of type 'number' is not assignable
// to 'string' index type 'string'.(2411)
};