move to public repo
This commit is contained in:
17
types/index.ts
Normal file
17
types/index.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user