(tic-tac-toe): Laid the foundations for tic tac toe/database interactions

This commit is contained in:
apetitco 2025-12-20 01:00:40 +01:00
parent 7f7c0c12d1
commit f5c0f5635d

View file

@ -3,8 +3,8 @@ import type { Database } from './_base';
// describe every function in the object // describe every function in the object
export interface ITicTacToeDb extends Database { export interface ITicTacToeDb extends Database {
normalFunction(id: TemplateId): TemplateData | undefined, setGameOutcome(this: ITicTacToeDb, id: GameId): void,
asyncFunction(id: TemplateId): Promise<TemplateData | undefined>, // asyncFunction(id: TemplateId): Promise<TemplateData | undefined>,
}; };
export const TicTacToeImpl: Omit<ITicTacToeDb, keyof Database> = { export const TicTacToeImpl: Omit<ITicTacToeDb, keyof Database> = {