From c5503ef282661e4ae6b05180e628aaf0babe3c69 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 28 Oct 2022 18:24:08 +0300 Subject: [PATCH] add GoGetSession method binding --- src/app/services/go.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 };