マップ型を設定する3つの方法
type Things = Map<string, ThingValue>;
interface ThingValue {
label: string;
count: number;
}
const things1: Things = new Map();
const things2 = new Map<string, ThingValue>();
// not recommended
const mapFactory = () => new Map<string, ThingValue>();
const things3 = mapFactory();