aboutsummaryrefslogtreecommitdiff
path: root/api/api.ts
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-09 17:10:50 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-09 17:10:50 +0200
commit5856e80fcb78446be37456ec1e5c47b2ab02201f (patch)
treeeb600e49b8e5884c8ffc7d96719a9bd0b9764120 /api/api.ts
parent24a90a67674d52dd3569cf5289b3f4b2f35f23ad (diff)
dprint format :tada:
Diffstat (limited to 'api/api.ts')
-rw-r--r--api/api.ts38
1 files changed, 19 insertions, 19 deletions
diff --git a/api/api.ts b/api/api.ts
index 320df92..95c63ba 100644
--- a/api/api.ts
+++ b/api/api.ts
@@ -1,14 +1,14 @@
export interface userInfo {
- avatar: string|null,
- status: string|null,
- coutry: string|null,
- id: string,
- registered: number,
- username: string,
- friends: number,
- relation?: "none"|"friends"|"incoming"|"outgoing"|"blocked",
- rating: number,
-};
+ avatar: string | null;
+ status: string | null;
+ coutry: string | null;
+ id: string;
+ registered: number;
+ username: string;
+ friends: number;
+ relation?: 'none' | 'friends' | 'incoming' | 'outgoing' | 'blocked';
+ rating: number;
+}
export type ruleset = {
timelimit: {
@@ -17,15 +17,15 @@ export type ruleset = {
seconds: number;
addmove: number;
shared: boolean;
- },
+ };
ranked: boolean;
-}
+};
export type userColors = {
diskA: string;
diskB: string;
background: string;
-}
+};
export interface userPreferences {
darkMode?: boolean;
@@ -34,13 +34,13 @@ export interface userPreferences {
}
export interface userGameTotals {
- draw: number;
- games: number;
- lose: number;
- win: number;
+ draw: number;
+ games: number;
+ lose: number;
+ win: number;
}
-export type outcome = "w" | "l" | "d";
+export type outcome = 'w' | 'l' | 'd';
export interface userGames {
totals: userGameTotals;
@@ -60,5 +60,5 @@ export interface gameInfo {
rating_opponent?: number;
ruleset: ruleset;
started: number;
- status: "finished"|"in_progress"|"resign"|"wait_for_opponent";
+ status: 'finished' | 'in_progress' | 'resign' | 'wait_for_opponent';
}