aboutsummaryrefslogtreecommitdiff
path: root/api/api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/api.ts')
-rw-r--r--api/api.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/api.ts b/api/api.ts
index 2746238..0b37441 100644
--- a/api/api.ts
+++ b/api/api.ts
@@ -38,6 +38,8 @@ export interface userGameTotals {
win: number;
}
+export type outcome = "w" | "l" | "d";
+
export interface userGames {
totals: userGameTotals;
games: Array<gameInfo>;
@@ -49,7 +51,7 @@ export interface gameInfo {
id: string;
moves: Array<number>;
opponent: string;
- outcome: "w"|"l"|"d";
+ outcome: outcome;
parent?: string;
private: boolean;
rating?: number;