Files
Michess/types/index.ts
Nathaniel Tampus 17ce3cf4c4 move to public repo
2023-01-03 15:47:30 +08:00

18 lines
334 B
TypeScript

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;
}