aboutsummaryrefslogtreecommitdiff
path: root/api/api.ts
blob: 43d7951f5fc600acd7ad3f0f6691442fa1041796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export interface userInfo {
	avatar?: string|null,
	status?: string|null,
	coutry?: string|null,
	id?: string,
	registered?: number,
	type?: string,
	username?: string,
};

export type ruleset = {
	timelimit: {
		enabled: boolean;
		minutes?: number;
		seconds?: number;
		addmove?: number;
		shared: boolean;
	},
	ranked: boolean;
}

export type userColors = {
	diskA: string;
	diskB: string;
	background: string;
}

export interface userPreferences {
	darkMode?: boolean;
	ruleset?: ruleset;
	userColors?: userColors;
}