move to public repo

This commit is contained in:
Nathaniel Tampus
2023-01-03 15:47:30 +08:00
commit 17ce3cf4c4
58 changed files with 2430 additions and 0 deletions

17
types/index.ts Normal file
View File

@@ -0,0 +1,17 @@
export interface Game {
id?: number;
pgn?: string;
white?: User;
black?: User;
winner?: "white" | "black" | "draw";
host?: User;
code?: string;
open?: boolean;
observers?: User[];
}
export interface User {
id?: number | string; // string for guest IDs
name?: string;
email?: string;
}