diff --git a/src/app/services/go.ts b/src/app/services/go.ts index ece084a..1c85eb2 100644 --- a/src/app/services/go.ts +++ b/src/app/services/go.ts @@ -1,7 +1,9 @@ import { Game } from '../interfaces/game.interface'; +import { Session } from '../interfaces/session.interface'; export interface Go extends Window { - GetGames: () => Promise; + GoGetGames: () => Promise; + GoGetSessions: () => Promise GoRunGame: (gameId: string) => void; } @@ -9,7 +11,7 @@ export interface GoCallback extends Window { SetVersion: (value: string) => void; } -let { GetGames, GoRunGame } = window as unknown as Go; +let { GoGetGames, GoRunGame, GoGetSessions } = window as unknown as Go; let { SetVersion } = window as unknown as GoCallback; let w = window as unknown as GoCallback; @@ -30,4 +32,4 @@ let w = window as unknown as GoCallback; // document.dispatchEvent(event); // }; -export { GetGames, SetVersion, GoRunGame }; +export { GoGetGames, GoGetSessions, SetVersion, GoRunGame };