UNPKG
poem_game_component
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
poem_game_component
/
src
/
domain
/
interfaces
/
GameRepository.ts
9 lines
(8 loc)
•
272 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Game
}
from
'../Game'
;
export
interface
GameRepository
{
save
(
game
:
Game
):
Promise
<
void
>;
findById
(
id
:
string
):
Promise
<
Game
|
null
>;
findAll
():
Promise
<
Game
[]>;
update
(
game
:
Game
):
Promise
<
void
>;
delete
(
id
:
string
):
Promise
<
void
>; }