TypeScript でStringをキーにしてオブジェクトにアクセスする場合、次のようなTypeを定義します。 const user: { [key:string] : string } = { name: ...
確定! 回上一頁