Propiedad de la firma del índice

class Games {
// Index signature property
[gamesName : string] : string

}
let games = new Games();
games['G1'] = "Call of duty";
games['G2'] = "Battlefield";
//...
Kamyab Rouhifar