ObjectをMapのように使うときの型指定2025-01-26TypeScriptlet obj: { [key: string]: number } = {}; 参考https://typescriptbook.jp/reference/values-types-variables/object/index-signature