npm workspaces, NodeNext for server

This commit is contained in:
Nathaniel Tampus
2023-02-05 13:49:40 +08:00
parent dc233b2c84
commit bd39cf8c46
49 changed files with 129 additions and 1605 deletions

18
types/index.d.ts vendored Normal file
View File

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