Full error message:

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Igame'.
No index signature with a parameter of type 'string' was found on type 'Igame'. ts(7053)

interface:

```
export interface Igame {
  id: number;
  isStart: boolean;
  isFinish: boolean;
}

```

in the class component

```
public games: Igame[] = [];

public gameAction(id: number, action: string): void {
    const index = this.games.findIndex((game) => game.id === id);
    this.games[index][action] = true;
}

```

The error underline this code:

```
this.games[index][action]

```

The function gameAction is used to change a game status.
e.g

```
gameAction(1, 'isStart')

```

(game #1 is started)