You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BOB_PARTY/bob_party/src/services/gameService/ILoaderGame.ts

17 lines
470 B

import { Game } from "../../core/game";
export default interface ILoaderGame{
/**
* loadAllGame methode that load every Game from the data management system
* return an array of Game
*/
loadAllGame(): Promise<Game[]>;
/**
* loadByID methode that load a match from the data management system by its id
* id the id we want to search
* return a Game if found, if not null
*/
loadByID(id:string): Promise<Game | null>;
}