rename reason to endReason

This commit is contained in:
Nathaniel Tampus
2023-04-01 20:58:29 +08:00
parent 86f880c181
commit 8d19c88c83
4 changed files with 20 additions and 19 deletions

2
types/index.d.ts vendored
View File

@@ -4,7 +4,7 @@ export interface Game {
white?: User;
black?: User;
winner?: "white" | "black" | "draw";
reason?: string;
endReason?: "draw" | "checkmate" | "stalemate" | "repetition" | "insufficient" | "abandoned";
host?: User;
code?: string;
unlisted?: boolean;