refactor game interface (not ended)
This commit is contained in:
parent
4e457268d5
commit
81304c5724
@ -22,7 +22,7 @@ export class GamesBarComponent implements OnInit {
|
||||
console.log(value);
|
||||
this.games = value;
|
||||
if (this.games.length > 0){
|
||||
this.activeGame = 0
|
||||
this.activeGame = this.games[0].title
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
export interface Game {
|
||||
id: number;
|
||||
id: string;
|
||||
title: string;
|
||||
image: string;
|
||||
description: string;
|
||||
|
@ -2,7 +2,7 @@ import { Game } from '../interfaces/game.interface';
|
||||
|
||||
export interface Go extends Window {
|
||||
GetGames: () => Promise<Game[]>;
|
||||
GoRunGame: (gameId: number) => void;
|
||||
GoRunGame: (gameId: string) => void;
|
||||
}
|
||||
|
||||
export interface GoCallback extends Window {
|
||||
|
Loading…
Reference in New Issue
Block a user