chore(eslint): fixed eslint rules

This commit is contained in:
Maix0 2026-01-06 23:49:13 +01:00 committed by Maix0
parent 2bf5e6e700
commit 830f251537
2 changed files with 13 additions and 13 deletions

View file

@ -53,7 +53,7 @@ export const TicTacToeImpl: Omit<ITicTacToeDb, keyof Database> = {
if (isNullish(g.nameO) || isNullish(g.nameO)) return undefined;
return g as TicTacToeGame & { nameX: string, nameO: string };
}).filter(v => !isNullish(v));
}
},
};
export type TTTGameId = UUID & { readonly __uuid: unique symbol };

View file

@ -14,8 +14,8 @@ const TTTHistoryResponse = {
data: Type.Array(
Type.Object({
gameId: Type.String({ description: 'gameId' }),
playerX: Type.Object({id: Type.String(), name: Type.String()}),
playerO: Type.Object({id: Type.String(), name: Type.String()}),
playerX: Type.Object({ id: Type.String(), name: Type.String() }),
playerO: Type.Object({ id: Type.String(), name: Type.String() }),
date: Type.String(),
outcome: Type.Enum(['winX', 'winO', 'other']),
}),