refactor game interface (not ended)

This commit is contained in:
cyber-dream 2022-10-17 23:38:00 +03:00
parent 4e457268d5
commit 81304c5724
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ export class GamesBarComponent implements OnInit {
console.log(value); console.log(value);
this.games = value; this.games = value;
if (this.games.length > 0){ if (this.games.length > 0){
this.activeGame = 0 this.activeGame = this.games[0].title
} }
}); });
} }

View File

@ -1,5 +1,5 @@
export interface Game { export interface Game {
id: number; id: string;
title: string; title: string;
image: string; image: string;
description: string; description: string;

View File

@ -2,7 +2,7 @@ import { Game } from '../interfaces/game.interface';
export interface Go extends Window { export interface Go extends Window {
GetGames: () => Promise<Game[]>; GetGames: () => Promise<Game[]>;
GoRunGame: (gameId: number) => void; GoRunGame: (gameId: string) => void;
} }
export interface GoCallback extends Window { export interface GoCallback extends Window {