UNPKG

the-game-domain

Version:

Complete domain layer for 'The Game' card game with rich business entities, automatic persistence, action tracking, and advanced game mechanics. Features Game, Player, Card, Deck, Pile entities with repository pattern, turn management, victory/defeat dete

13 lines 478 B
import { Game } from '../entities/Game'; import { IGameRepository } from './GameRepository'; export declare class InMemoryGameRepository implements IGameRepository { private readonly _games; save(game: Game): Promise<void>; findById(id: string): Promise<Game | null>; findAll(): Promise<Game[]>; delete(id: string): Promise<void>; clear(): void; get size(): number; has(id: string): boolean; } //# sourceMappingURL=InMemoryGameRepository.d.ts.map