aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-04 09:42:54 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-04 09:42:54 +0100
commit3f13d9e35ba55ddb7cda064aedf94bf3f9b14102 (patch)
tree123d20cf61c27e6f4b567885dc1cab6b73c50ddc /api
parentaba3566129bed29fb3385a80f8e255e378b6e9d8 (diff)
fetch unexisting endpoint for userPreferences
Diffstat (limited to 'api')
-rw-r--r--api/api.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/api/api.ts b/api/api.ts
index e2e3d93..b8a92e3 100644
--- a/api/api.ts
+++ b/api/api.ts
@@ -7,3 +7,19 @@ export interface userInfo {
username?: string,
};
+export type ruleset = {
+ timelimit: {
+ enabled: boolean;
+ minutes?: number;
+ seconds?: number;
+ addmove?: number;
+ shared: boolean;
+ },
+ ranked: boolean;
+};
+
+export interface userPreferences {
+ darkMode?: boolean;
+ ruleset?: ruleset;
+}
+