feat : add chessCom games import

This commit is contained in:
GuillaumeSD
2024-02-27 03:32:46 +01:00
parent b2b80b1cc1
commit 13a4bc06b6
13 changed files with 270 additions and 30 deletions

14
src/types/chessCom.ts Normal file
View File

@@ -0,0 +1,14 @@
export interface ChessComGame {
uuid: string;
white: ChessComUser;
black: ChessComUser;
end_time: number;
pgn: string;
time_class: string;
}
export interface ChessComUser {
username: string;
rating: number;
["@id"]: string;
}